Shujing Yang created SPARK-48100:
------------------------------------
Summary: [SQL][XML] Fix projection issue when there's a nested
struct
Key: SPARK-48100
URL: https://issues.apache.org/jira/browse/SPARK-48100
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 4.0.0
Reporter: Shujing Yang
Previously, the XML parser can't skip nested structure data fields when they
were not selected in the schema. For instance, in the below example,
`df.select("struct2").collect()` returns `Seq(null)` as `struct1` wasn't
effectively skipped. This PR fixes this issue.
{code:java}
<ROW>
<struct1>
<innerStruct><field1>1</field1></innerStruct>
</struct1>
<struct2>
<field2>2</field2>
</struct2>
</ROW>{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]