You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2024/05/15 05:00:00 UTC
[jira] [Assigned] (SPARK-48100) [SQL][XML] Fix issues in skipping nested structure fields not selected in schema
[ https://issues.apache.org/jira/browse/SPARK-48100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon reassigned SPARK-48100:
------------------------------------
Assignee: Shujing Yang
> [SQL][XML] Fix issues in skipping nested structure fields not selected in schema
> --------------------------------------------------------------------------------
>
> 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
> Assignee: Shujing Yang
> Priority: Major
> Labels: pull-request-available
>
> Previously, the XML parser can't skip nested structure data fields effectively 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org