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-44751][SQL][FOLLOW-UP] XML: Refactor TypeCast and timestampFormatter #43697

Closed
wants to merge 1 commit into from

Conversation

sandip-db
Copy link
Contributor

What changes were proposed in this pull request?

  • Move initialization of TimestampFormatter from XmlOptions to StaxXmlParser, StaxXmlGenerator and XmlInferSchema.
  • Move functions from typecast.scala to StaxXmlParser or XmlInferSchema
  • Convert XmlInferSchema to a class

Why are the changes needed?

Some of the timestampformatter fields were not correctly initialized when accessed in StaxXmlParser in the executor. This was resulting in some timestamp parsing failures. Moving the initialization of timestampformatter to StaxXmlParser fixed the issue.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Added new unit tests

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

No

@HyukjinKwon
Copy link
Member

Merged to master.

@HyukjinKwon HyukjinKwon changed the title [SPARK-44751][SQL] XML: Refactor TypeCast and timestampFormatter [SPARK-44751][SQL][FOLLOW-UP] XML: Refactor TypeCast and timestampFormatter Nov 7, 2023
@HyukjinKwon
Copy link
Member

Let's file a new jira next time. The change is too big to be a followup :-)

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.

2 participants