Skip to content

Conversation

@sandip-db
Copy link
Contributor

What changes were proposed in this pull request?

Validate XML element name on write. Spark SQL permits spaces in field names and they may even start with number or special characters. These field names cannot be converted to XML element names. This PR adds validation to throw error on non-compliant XML element names.
This applies only to XML write. Validation is on by default. User can choose to disable this validation.

Why are the changes needed?

Same as above

Does this PR introduce any user-facing change?

Yes

How was this patch tested?

New unit test

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

No

@HyukjinKwon
Copy link
Member

Merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants