Skip to content

[SPARK-53546][TESTS][FOLLOW-UP] Fix nested array schema evolution and style for InMemoryBaseTable - #52359

Closed
szehon-ho wants to merge 1 commit into
apache:masterfrom
szehon-ho:in_memory_schema_evolution_fix
Closed

szehon-ho wants to merge 1 commit into
apache:masterfrom
szehon-ho:in_memory_schema_evolution_fix

Conversation

@szehon-ho

@szehon-ho szehon-ho commented Sep 16, 2025 •

Copy link
Copy Markdown
Member

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

@github-actions github-actions Bot added the SQL label Sep 16, 2025
} else {
extractArrayValue(arrayData, elementType,
readSchema.fields(readIndex).dataType)
val writeType = writeSchema.fields(writeIndex).dataType.asInstanceOf[ArrayType]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

note: small bug here, updated the corresponding test

}

// 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

@szehon-ho szehon-ho Sep 16, 2025 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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

@dongjoon-hyun

Copy link
Copy Markdown
Member

cc @cloud-fan

@szehon-ho

Copy link
Copy Markdown
Member Author

Thanks, the failure looks not related, re-running it

@cloud-fan

Copy link
Copy Markdown
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in f57a473 Sep 17, 2025
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants