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

   I ran across this when trying to use `ParquetUtils#footerMetrics` on a 
Parquet file with an enum type. The method in turn calls `ParquetConversions`. 
It seems Parquet enums aren't supported. It throws an exception:
   
   ```
   java.nio.HeapByteBuffer cannot be cast to java.lang.CharSequence
   java.lang.ClassCastException: java.nio.HeapByteBuffer cannot be cast to 
java.lang.CharSequence
        at 
org.apache.iceberg.parquet.ParquetConversions.fromParquetPrimitive(ParquetConversions.java:53)
   ```
   
   Adds `ENUM` to switch statement when converting strings along with testcase.


-- 
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: issues-unsubscr...@iceberg.apache.org

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

Reply via email to