From 95fe4bfc7417c7ec1376f6ba00d795e39a324ebe Mon Sep 17 00:00:00 2001 From: Laksh Singla Date: Wed, 18 Oct 2023 16:37:37 +0530 Subject: [PATCH] Rename windowing option (#15184) (#15194) Co-authored-by: Zoltan Haindrich --- .../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 8097377d09c8..7dbf428d5832 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())