Repository navigation
[SPARK-56132][SS] Call pruneColumns on V2 streaming to fix metadata reading issue #56133
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
Closed
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
813df92
[GH-56132][STREAMING] Call pruneColumns on V2 streaming scan builders…
zikangh 2e4fd61
[GH-56132][STREAMING] Address review: fix ContinuousExecution, improv…
zikangh 195409a
[GH-56132][STREAMING] Address review: fix ContinuousExecution, improv…
zikangh 1e184cf
[GH-56132][STREAMING] Add escape-hatch config spark.sql.streaming.v2.…
zikangh a9ec1ed
[GH-56132][STREAMING] Add E2E streaming metadata column test in Metad…
zikangh 3fa3c33
[GH-56132][STREAMING] Assert AIOOBE in disabled-flag test; add flag=f…
zikangh b3e1e35
[GH-56132][STREAMING] Fix line length lint in MicroBatchExecution
zikangh 11dbc06
[GH-56132][STREAMING] Fix import ordering in ContinuousExecution
zikangh 8a94ac4
[GH-56132][STREAMING] Fix import ordering in ContinuousExecution (SQL…
zikangh 0394c86
[GH-56132][STREAMING] Fix import order in MetadataColumnSuite, line l…
zikangh dae00fe
[GH-56132][STREAMING] Fix remaining import order in MetadataColumnSuite
zikangh f208acd
[GH-56132][STREAMING] Add bindingPolicy to config; simplify AIOOBE te…
zikangh 7ce9cdf
[GH-56132][STREAMING] Fix bindingPolicy call order (before booleanConf)
zikangh cd700c6
[GH-56132][STREAMING] Fix InMemoryMicroBatchReaderFactory: append met…
zikangh 7faba11
[GH-56132][STREAMING] Remove escape-hatch config; unconditionally cal…
zikangh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The batch analogue in
PushDownUtils.pruneColumnsrebinds the relation's output fromscan.readSchema()afterbuild()(viatoOutputAttrs(scan.readSchema(), relation)) so the relation reflects what the scan actually produces. Here we keep the analyzedoutputand trust the connector to produce a matchingreadSchema(). If a connector reorders fields or silently drops an unrecognized column, downstream binding will fail with a different cryptic error that looks like the bug this PR fixes — making future regressions confusing to diagnose. Consider either adopting the batch defensive rebind, or adding a short comment explaining why the analyzedoutputis safe to trust here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not an issue here because we pass the entire output into pruneColumns.