Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial work on adding operator map #3613

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tanclary
Copy link
Contributor

@tanclary tanclary commented Jan 5, 2024

No description provided.

@julianhyde
Copy link
Contributor

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.

Copy link

github-actions bot commented Dec 7, 2024

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 90 days if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants