You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be fine to support this. I think the change is somewhat different though.
If an xs:element within the xs:choice has maxOccurs > 1, then that choice is an array type. That much works now.
If xs:choice has maxOccurs > 1, then the result isn't a struct, but an array of struct.
The resulting Seq of StructField would have to be wrapped up in another ArrayType in this case to express this, I think.
If you can try that and it works would you open a pull request to test?
Example input:
Expected output:
fruits: struct<apple: array<struct<...>>, orange: array<struct<...>>>
Actual output:
fruits: struct<apple: struct<...>, orange: struct<...>>
Proposed fix:
spark-xml/src/main/scala/com/databricks/spark/xml/util/XSDToSchema.scala
Line 227 in ddd1ef5
The text was updated successfully, but these errors were encountered: