sandip-db commented on PR #43503: URL: https://github.com/apache/spark/pull/43503#issuecomment-1784135850
> https://github.com/sandip-db/spark/runs/18001274050 @HyukjinKwon Please review the latest commit. It disables structure validation in [StaxXmlGenerator](https://github.com/apache/spark/pull/43503/commits/f26a128bfc40caf2e04a45aae54fc3d4a074885f#diff-6233c12bfa826e91b0398e38f999d238f505b32e8fbce5cddef22a9668625c7a) to avoid the issue reported in the above test: `(javax.xml.stream.XMLStreamException) Trying to output second root, <ROW>` This happens because the same XMLStreamWriter instance is used to convert multiple InternalRow to XML string. This required me to import a shaded package to access `WstxOutputProperties.P_OUTPUT_VALIDATE_STRUCTURE`. I also added an option to disable indentation. As seen in the above test run,`ThriftServerQueryTestSuite` was having issues with multiline XML string. -- 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]
