databricks / spark-xml

XML data source for Spark SQL and DataFrames
Apache License 2.0
499 stars 226 forks source link

Getting Multi Generator issue while flattening the XML file #682

Closed a-sameer18 closed 4 months ago

a-sameer18 commented 4 months ago

Hi, I am getting Multi Generator issue while flattening the XML file using PySpark(Python).

XML is having 2 Arrays at same level.

XML: Test9.txt Code: Spark-xml_Flatten.text

Please help. Thanks, Sam Test9.txt Spark-xml_Flatten.txt

srowen commented 4 months ago

I'm not sure what you're reporting, but multiple arrays are fine. You can't explode on two array cols though. This has nothing to do with spark-xml though.