Skip to content

[SPARK-50603][SQL] Respect user-provided basePath for streaming file source reads without glob #51267

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kimahriman
Copy link
Contributor

What changes were proposed in this pull request?

Don't override the user-provided basePath for streaming file source reads without globbing.

Why are the changes needed?

#14803 fixed an issue reading partition values for streaming file source reads without globbing, but it always overwrites the basePath option. If the user provides a custom basePath in this case, there can be a mismatch in partition schema from when the stream is loaded to when a batch is executed, causing errors.

Does this PR introduce any user-facing change?

Bug fix.

How was this patch tested?

New UT

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

No

@Kimahriman
Copy link
Contributor Author

Re-opening from #49220 which was approved but never merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant