Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-46630][SQL] XML: Validate XML element name on write #44634

Closed

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
3 participants