shardulm94 opened a new pull request #1821:
URL: https://github.com/apache/iceberg/pull/1821


   In the Iceberg spec we mention
   > ORC tinyint and smallint would also map to int
   > ORC varchar and char would also map to string
   
   However, trying to read such data currently throws errors
   ```
   java.lang.IllegalArgumentException: Can not promote VARCHAR type to STRING
   at 
org.apache.iceberg.relocated.com.google.common.base.Preconditions.checkArgument(Preconditions.java:441)
   at 
org.apache.iceberg.orc.ORCSchemaUtil.buildOrcProjection(ORCSchemaUtil.java:302)
   ```
   
   Iceberg does not write CHAR and VARCHAR, but this data may exist in files 
written by non-Iceberg writers imported into Iceberg. This PR adds support in 
`buildOrcProjection` for such types.


----------------------------------------------------------------
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:
[email protected]



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

Reply via email to