diff --git a/sql/src/main/java/org/apache/druid/sql/calcite/expression/Expressions.java b/sql/src/main/java/org/apache/druid/sql/calcite/expression/Expressions.java index 94368fc7ed97..689db77c0faa 100644 --- a/sql/src/main/java/org/apache/druid/sql/calcite/expression/Expressions.java +++ b/sql/src/main/java/org/apache/druid/sql/calcite/expression/Expressions.java @@ -243,7 +243,7 @@ public static DruidExpression toDruidExpressionWithPostAggOperands( return inputRefToDruidExpression(rowSignature, rexNode); } else if (rexNode instanceof RexOver) { throw new CannotBuildQueryException( - StringUtils.format("Encountered an OVER during Filter translation [%s].", rexNode) + StringUtils.format("Unexpected OVER expression during translation [%s]", rexNode) ); } else if (rexNode instanceof RexCall) { return rexCallToDruidExpression(plannerContext, rowSignature, rexNode, postAggregatorVisitor);