[
https://issues.apache.org/jira/browse/CALCITE-6206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17812427#comment-17812427
]
Tanner Clary commented on CALCITE-6206:
---------------------------------------
I'm beginning to work on this, I was thinking maybe each dialect has a map with
`SqlKind` as the key and `SqlOperator` as the value.
There's actually a small PoC in https://github.com/apache/calcite/pull/3649 if
either of you wanted to look. I didn't want to do all the libraries in case
there were issues with my approach.
> 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)