Skip to content

Conversation

xiaonanyang-db
Copy link
Contributor

What changes were proposed in this pull request?

It's found that when parsing an XML record with a user-defined schema that specifies attribute fields as Variant type, the parsing will fail. This PR fixes the bug in the StaxXmlParser

Why are the changes needed?

Bug fix

Does this PR introduce any user-facing change?

No

How was this patch tested?

New UTs

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the SQL label May 9, 2025
@HyukjinKwon
Copy link
Member

Merged to master.

yhuang-db pushed a commit to yhuang-db/spark that referenced this pull request Jun 9, 2025
### What changes were proposed in this pull request?
It's found that when parsing an XML record with a user-defined schema that specifies attribute fields as Variant type, the parsing will fail. This PR fixes the bug in the `StaxXmlParser`

### Why are the changes needed?
Bug fix

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
New UTs

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes apache#50840 from xiaonanyang-db/SPARK-52049.

Authored-by: Xiaonan Yang <xiaonan.yang@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
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