julianhyde commented on PR #3613: URL: https://github.com/apache/calcite/pull/3613#issuecomment-1879343630
There should be an auxiliary call 'RexNode transform(RexCall call, SqlDialect targetDialect)'. For a given operator, it should look for an equivalent operator that is avaialble in the target dialect, and convert the call into a call to the new operator. Some operators - e.g. DATEDIFF - would permute the operands. The BiMap is a nice idea, but I think it might run out of steam. I would have one map, and a 'registerBijection' method that would put two entries into the map, one for each target dialect. -- 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]
