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

[Coral-Trino] Use CoralSqlDialect during CoralRelNode to CoralSqlNode conversion #521

Merged
merged 5 commits into from
Jul 31, 2024

Conversation

KevinGe00
Copy link
Contributor

What changes are proposed in this pull request, and why are they necessary?

As part of the new Coral IR, we want all language-specific transformations to exist in the SqlNode layer, meaning we have to replace TrinoSqlDialect used during the RelNode -> SqlNode phase of Coral-Trino's right hand side translation with CoralSqlDialect (the SqlDialect to represent Coral IR). This is only possible now after PRs such as #450 and #460, which made TrinoSqlDialect a superset of CoralSqlDialect with no conflicting diffs.

Note that TrinoSqlDialect still exists and is used at the final stage of Coral-Trino's right hand side. This is fine as it is language-specific transformations existing in the SqlNode layer.

How was this patch tested?

clean build
regression tested

@KevinGe00 KevinGe00 merged commit 8e03f4c into linkedin:master Jul 31, 2024
1 check passed
KevinGe00 added a commit to KevinGe00/coral that referenced this pull request Jul 31, 2024
… conversion (linkedin#521)

* temp

* temp

* use coralsqldialect in trino reltosql

* Import class not member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants