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

[WIP DO NOT MERGE] Bump Calcite to preserve LATERALs in LATERAL UNNEST calls #542

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

KevinGe00
Copy link
Contributor

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

RelNode type derivation on the Coral IR -> Spark SQL path was introduced in #507 in ExtractUnionFunctionTransformer here. The type derivation requires calling Calcite's validate function which was incorrectly dropping the LATERAL keyword, this was previously only fixed for ... LATERAL (SELECT ..... case but has since been fixed for .. LATERAL (UNNEST ... here.

This PR bumps the Calcite version to include the fix and adds a new unit to ensure LATERALs are not dropped for views with the Coral IR -> Spark SQL type derivation (through ExtractUnionFunctionTransformer).

How was this patch tested?

  • ./gradlew clean build
  • new unit test passing when testing with Calcite change (using snapshot Calcite)
  • regression tests pending

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.

1 participant