somu-imply commented on code in PR #15034:
URL: https://github.com/apache/druid/pull/15034#discussion_r1337507293


##########
sql/src/main/java/org/apache/druid/sql/calcite/expression/SqlOperatorConversion.java:
##########
@@ -38,6 +39,16 @@ public interface SqlOperatorConversion
    */
   SqlOperator calciteOperator();
 
+  /**
+   * Returns the Alias SQL operator corresponding to this function. Should be 
a singleton.
+   *
+   * @return operator
+   */
+  default Optional<SqlOperator> aliasCalciteOperator()

Review Comment:
   Why are not using the same technique as we do for TRUNC or SUBSTR by using 
the AliasedOperatorConversion ? (at least for the SQL side of things)



-- 
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]

Reply via email to