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

[Spark] Replace the default pattern matching for LogicalRelation to LogicalRelationWithTable #3805

Merged

Conversation

HeartSaVioR
Copy link
Contributor

@HeartSaVioR HeartSaVioR commented Oct 25, 2024

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Description

This PR proposes to replace the default pattern matching for LogicalRelation to newly introduced pattern object LogicalRelationWithTable which will be available in upcoming Spark 4.0.

This change helps the project to modify less pieces of code when Spark makes the change to the LogicalRelation; most pattern matchings with LogicalRelation only extract the relation and catalog table, hence they fit with LogicalRelationWithTable.

How was this patch tested?

Existing tests would suffice.

Does this PR introduce any user-facing changes?

No.

@HeartSaVioR
Copy link
Contributor Author

HeartSaVioR commented Oct 25, 2024

I'm planning to propose the change of LogicalRelation (new parameter of constructor) in Spark 4.0, which will break all pattern matches. For creating an instance of LogicalRelation, I'll try to figure out the way to be compatible with existing constructor (and be back here to address the issue with shim if I fail). But for pattern matching, every addition of parameter require patterns to be updated. It won't be needed after this PR.

Signed-off-by: Jungtaek Lim <[email protected]>
@vkorukanti vkorukanti merged commit 1eff5df into delta-io:master Oct 31, 2024
16 of 19 checks passed
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