Skip to content

Conversation

szehon-ho
Copy link
Member

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

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
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
Copy link
Member Author

@szehon-ho szehon-ho Sep 16, 2025

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
Member

cc @cloud-fan

@szehon-ho
Copy link
Member Author

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

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in f57a473 Sep 17, 2025
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