You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "somu-imply (via GitHub)" <gi...@apache.org> on 2023/09/26 16:39:11 UTC
Re: [PR] Allow aliasing of SQL operators and Macros (druid)
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: 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