Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
1.20.1
-
None
Description
The attributes MAP column generated by the XML format plugin is currently explicit and present in wildcard selects. However, attributes are frequently not present at all in XML data, or are better queried using explicit projections of the individual attributes of interest to scalars. The motivating example here is an ETL-style query that transforms XML to Parquet using a CTAS with a wildcard column spec. This query will fail for XML that has no attributes because the Parquet writer cannot write a Parquet schema containing the empty struct produced by the attributes map. It is therefore proposed that the attributes MAP becomes an implicit column.
Attachments
Issue Links
- is fixed by
-
DRILL-8272 Skip MAP column without children when creating parquet tables
-
- Closed
-
- is related to
-
SPARK-20593 Writing Parquet: Cannot build an empty group
-
- Closed
-