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-47373][SQL] Match FileSourceScanLike to get metadata instead of FileSourceScanExec #45491

Closed
wants to merge 1 commit into from

Conversation

zwangsheng
Copy link
Contributor

What changes were proposed in this pull request?

When get Spark Plan info, we should match basic trait FileSourceScanLike to get metadata instead of matching
subclass FileSourceScanExec.

So that user-define file scan operators(which extend FileSourceScanLike) can be matched.

Why are the changes needed?

Match user-define file scan operators.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Exists Unit Test

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the SQL label Mar 13, 2024
Copy link
Contributor

@ulysses-you ulysses-you left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine in a way that it uses higher level interface that is applicable.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM.
Merged to master for Apache Spark 4.0.0.

@dongjoon-hyun
Copy link
Member

Thank you, @zwangsheng and all!

sweisdb pushed a commit to sweisdb/spark that referenced this pull request Apr 1, 2024
…f FileSourceScanExec

### What changes were proposed in this pull request?

When get Spark Plan info, we should match basic trait `FileSourceScanLike` to get metadata instead of matching
subclass `FileSourceScanExec`.

So that user-define file scan operators(which extend `FileSourceScanLike`) can be matched.

### Why are the changes needed?

Match user-define file scan operators.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Exists Unit Test

### Was this patch authored or co-authored using generative AI tooling?
No

Closes apache#45491 from zwangsheng/SPARK-47373.

Authored-by: zwangsheng <binjieyang@apache.org>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants