diff --git a/sql/src/test/java/org/apache/druid/sql/calcite/expression/ExpressionsTest.java b/sql/src/test/java/org/apache/druid/sql/calcite/expression/ExpressionsTest.java index 822ad9b907e9..c94eac39703d 100644 --- a/sql/src/test/java/org/apache/druid/sql/calcite/expression/ExpressionsTest.java +++ b/sql/src/test/java/org/apache/druid/sql/calcite/expression/ExpressionsTest.java @@ -2860,7 +2860,7 @@ public void testPresenceOfOverIsInvalid() () -> testHelper.testExpression(rexNode, null, plannerContext) ); - assertThat(t.getMessage(), StringContains.containsString("Encountered an OVER")); + assertThat(t.getMessage(), StringContains.containsString("Unexpected OVER expression")); } @Test