[ 
https://issues.apache.org/jira/browse/CALCITE-6206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17808006#comment-17808006
 ] 

Jiajun Xie commented on CALCITE-6206:
-------------------------------------

I have seen similar features before.

There are `UDFTransformer` in Coral. 

Here is 
[demo|https://github.com/linkedin/coral/commit/99310c2b423f12f355851140064bb46bddfaa126]
 about Hive "pmod" to Trino "mod", 

> Add library operator mapping for unparsing
> ------------------------------------------
>
>                 Key: CALCITE-6206
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6206
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Tanner Clary
>            Assignee: Tanner Clary
>            Priority: Major
>
> [~julianhyde] and I have talked about adding the ability to reference 
> cross-dialect operator aliases during unparsing so it does not need to be 
> "manually added".
> For instance, if unparsing a call for the "STARTS_WITH" operator for the 
> Snowflake dialect, it would be nice if there was some sort of map that could 
> be referenced to see that the call should be unparsed with "STARTSWITH" 
> instead.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to