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())