From bc792f643b88d638d767c462fbf0cda0790eb2d4 Mon Sep 17 00:00:00 2001 From: Zoltan Haindrich Date: Tue, 17 Oct 2023 13:21:30 +0000 Subject: [PATCH] Rename windowing option --- .../org/apache/druid/sql/calcite/planner/PlannerContext.java | 2 +- .../java/org/apache/druid/sql/calcite/DrillWindowQueryTest.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sql/src/main/java/org/apache/druid/sql/calcite/planner/PlannerContext.java b/sql/src/main/java/org/apache/druid/sql/calcite/planner/PlannerContext.java index 9141c4db090f..29f22d46c573 100644 --- a/sql/src/main/java/org/apache/druid/sql/calcite/planner/PlannerContext.java +++ b/sql/src/main/java/org/apache/druid/sql/calcite/planner/PlannerContext.java @@ -80,7 +80,7 @@ public class PlannerContext /** * Undocumented context key, used to enable window functions. */ - public static final String CTX_ENABLE_WINDOW_FNS = "windowsAreForClosers"; + public static final String CTX_ENABLE_WINDOW_FNS = "enableWindowing"; public static final String CTX_SQL_USE_BOUNDS_AND_SELECTORS = "sqlUseBoundAndSelectors"; public static final boolean DEFAULT_SQL_USE_BOUNDS_AND_SELECTORS = NullHandling.replaceWithDefault(); diff --git a/sql/src/test/java/org/apache/druid/sql/calcite/DrillWindowQueryTest.java b/sql/src/test/java/org/apache/druid/sql/calcite/DrillWindowQueryTest.java index 969b59b5037e..04556d80795f 100644 --- a/sql/src/test/java/org/apache/druid/sql/calcite/DrillWindowQueryTest.java +++ b/sql/src/test/java/org/apache/druid/sql/calcite/DrillWindowQueryTest.java @@ -477,7 +477,6 @@ public void windowQueryTest() .skipVectorize(true) .queryContext(ImmutableMap.of( PlannerContext.CTX_ENABLE_WINDOW_FNS, true, - "windowsAllTheWayDown", true, QueryContexts.ENABLE_DEBUG, true) ) .sql(testCase.getQueryString())