rdsr commented on a change in pull request #1046: URL: https://github.com/apache/incubator-iceberg/pull/1046#discussion_r428681937
########## File path: api/src/main/java/org/apache/iceberg/types/Types.java ########## @@ -641,6 +650,13 @@ public int hashCode() { } return fieldsById; } + + /** + * @return true if struct represents union schema + */ + public boolean isUnionSchema() { Review comment: Why do we need this in the main API? The API should not expose unions or info about union. Can't we do the translation in during data reading? Both Avro and ORC will take read schemas. IMO if the underlying file schema is a union and the read schema is a struct, the translation should happen there. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org