LakshSingla commented on a change in pull request #12092:
URL: https://github.com/apache/druid/pull/12092#discussion_r775039036
##########
File path:
sql/src/main/java/org/apache/druid/sql/calcite/expression/Expressions.java
##########
@@ -242,6 +242,7 @@ private static DruidExpression rexCallToDruidExpression(
.lookupOperatorConversion(operator);
if (conversion == null) {
+ plannerContext.setPlanningError("SQL query requires '%s' operator that
is not supported.", operator.getName());
Review comment:
Since this method is mostly used as a helper/util method, setting the
error here might not be desirable in every use case. Would it be better if it
is moved to a place like this? [Projections, line
105](https://github.com/apache/druid/blob/476d0bf4be4199e97695bd568d165cda98523d37/sql/src/main/java/org/apache/druid/sql/calcite/rel/Projection.java#L105)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]