Skip to content

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

Open
Kimahriman wants to merge 1 commit into
apache:masterfrom
Kimahriman:respect-base-path
Open

[SPARK-50603][SQL] Respect user-provided basePath for streaming file source reads without glob#51267
Kimahriman wants to merge 1 commit into
apache:masterfrom
Kimahriman:respect-base-path

Conversation

@Kimahriman

Copy link
Copy Markdown
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
Copy Markdown
ContributorAuthor

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

@Kimahriman
Kimahrimanforce-pushed the respect-base-path branch 2 times, most recently from 8f7a1df to 1496ab1CompareNovember 5, 2025 14:42
@Kimahriman
Kimahrimanforce-pushed the respect-base-path branch 2 times, most recently from 2832612 to 1ce12e3CompareNovember 28, 2025 18:58
Sign up for freeto 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.

2 participants

@Kimahriman@zhixingheyi-tian