From 71ad92d205d2574ca871c2d2278cf45e7edb2fc9 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Wed, 26 Mar 2025 16:47:45 +0100 Subject: [PATCH] [jOOQ/jOOQ#18234] Window specification isn't inlined in Snowflake query using WITH TIES syntax --- jOOQ/src/main/java/org/jooq/impl/SelectQueryImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jOOQ/src/main/java/org/jooq/impl/SelectQueryImpl.java b/jOOQ/src/main/java/org/jooq/impl/SelectQueryImpl.java index 22969a7869..3f98adb469 100644 --- a/jOOQ/src/main/java/org/jooq/impl/SelectQueryImpl.java +++ b/jOOQ/src/main/java/org/jooq/impl/SelectQueryImpl.java @@ -2264,6 +2264,9 @@ final class SelectQueryImpl extends AbstractResultQuery imp .visit(K_FROM).sqlIndentStart(" (") .subquery(true); + // [#18234] Re-push window specifications to the new subquery scope + pushWindow(ctx); + // [#13560] [#17947] Communicate the enforcement of MULTISET content to the CursorImpl. if (ctx.executeContext() != null) ctx.executeContext().data(DATA_MULTISET_CONTENT, true);