funcheetah opened a new pull request, #4664:
URL: https://github.com/apache/iceberg/pull/4664

   ### Summary
   Apache Iceberg does not support non-optional union types (e.g. [“int”, 
“string”]). This PR add spec to support non-optional union types.
   
   ### Representation
   non-optional union type can be converted to original type for single type 
union or struct for complex union.
   
   The struct representations converted from non-optional union types are 
consistent with non-optional union support added in Trino in 
https://github.com/trinodb/trino/pull/3483. 
    
   Deep nested non-optional union types are supported.
   
   #### Examples
   
   Basic
   
   [“int”, “string”] -> struct<tag int, field0 int, field1 string>
   
   Single type
   
   [“int”] -> int
   
   ### Implementation PRs
   - https://github.com/apache/iceberg/pull/4242
   - https://github.com/apache/iceberg/pull/4654
   
   ### TODO
   - Handle single type union (e.g. [“int”]) as its original type
   - Support for schema pruning within a complex union
   - Support in non-Spark environments (e.g. iceberg-data, flink, hive, etc.)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to