Repository navigation
[SPARK-53546][TESTS][FOLLOW-UP] Fix nested array schema evolution and style for InMemoryBaseTable - #52359
Closed
szehon-ho wants to merge 1 commit into
Closed
[SPARK-53546][TESTS][FOLLOW-UP] Fix nested array schema evolution and style for InMemoryBaseTable#52359szehon-ho wants to merge 1 commit into
szehon-ho wants to merge 1 commit into
Conversation
… style for InMemoryBaseTable
szehon-ho
commented
Sep 16, 2025
| } else { | ||
| extractArrayValue(arrayData, elementType, | ||
| readSchema.fields(readIndex).dataType) | ||
| val writeType = writeSchema.fields(writeIndex).dataType.asInstanceOf[ArrayType] |
Member
Author
There was a problem hiding this comment.
note: small bug here, updated the corresponding test
szehon-ho
commented
Sep 16, 2025
| } | ||
|
|
||
| // TODO- support schema evolution for missing nested types using UPDATE SET * and INSERT * | ||
| // currently the source struct needs to be fully compatible with target struct |
Member
Author
There was a problem hiding this comment.
Note: this is unrelated, but not sure we are going to do the TODO, so just downgrading it to a comment. It can be addressed it in #52347, but still debating whether it makes sense to do or not
Member
|
cc @cloud-fan |
Member
Author
|
Thanks, the failure looks not related, re-running it |
cloud-fan
approved these changes
Sep 17, 2025
Contributor
|
thanks, merging to master! |
huangxiaopingRD
pushed a commit
to huangxiaopingRD/spark
that referenced
this pull request
Nov 25, 2025
… style for InMemoryBaseTable ### What changes were proposed in this pull request? Fix nested array struct schema evolution case for InMemoryDataSource, also style fixes. ### Why are the changes needed? Address style review comment (apache#52299 (comment)) and a small bug fix for apache#52299 (test-only) ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Ran affected unit test ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#52359 from szehon-ho/in_memory_schema_evolution_fix. Authored-by: Szehon Ho <szehon.apache@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changes were proposed in this pull request?
Fix nested array struct schema evolution case for InMemoryDataSource, also style fixes.
Why are the changes needed?
Address style review comment (#52299 (comment)) and a small bug fix for #52299 (test-only)
Does this PR introduce any user-facing change?
No
How was this patch tested?
Ran affected unit test
Was this patch authored or co-authored using generative AI tooling?
No