You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "pranavbhole (via GitHub)" <gi...@apache.org> on 2023/10/02 16:20:49 UTC

Re: [PR] Allow aliasing of SQL operators and Macros (druid)

pranavbhole commented on code in PR #15034:
URL: https://github.com/apache/druid/pull/15034#discussion_r1342904966


##########
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:
   used AliasedOperatorConversion 



-- 
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: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org