sandip-db opened a new pull request, #43697: URL: https://github.com/apache/spark/pull/43697
### 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 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
