kingeasternsun opened a new pull request #3987:
URL: https://github.com/apache/iceberg/pull/3987
We use `add_filles` syscall to migrate hive table to iceberg table, but
when we use flink to read that target table, failed with these errors
```shell
ava.lang.UnsupportedOperationException: Unsupported type: optional int96
wafer_start_time = 4
at
org.apache.iceberg.flink.data.FlinkParquetReaders$ReadBuilder.primitive(FlinkParquetReaders.java:268)
at
org.apache.iceberg.flink.data.FlinkParquetReaders$ReadBuilder.primitive(FlinkParquetReaders.java:73)
at
org.apache.iceberg.parquet.TypeWithSchemaVisitor.visit(TypeWithSchemaVisitor.java:52)
at
org.apache.iceberg.parquet.TypeWithSchemaVisitor.visitField(TypeWithSchemaVisitor.java:155)
at
org.apache.iceberg.parquet.TypeWithSchemaVisitor.visitFields(TypeWithSchemaVisitor.java:169)
at
org.apache.iceberg.parquet.TypeWithSchemaVisitor.visit(TypeWithSchemaVisitor.java:47)
at
org.apache.iceberg.flink.data.FlinkParquetReaders.buildReader(FlinkParquetReaders.java:68)
at
org.apache.iceberg.flink.source.RowDataFileScanTaskReader.lambda$newParquetIterable$1(RowDataFileScanTaskReader.java:138)
at org.apache.iceberg.parquet.ReadConf.(ReadConf.java:118)
```
The solution was inspired by #1184
# Testing
[ ] unsure about what is the best place to add unit-tests that use spark to
create parquet file with parquet int96 timestamps are stored an use flink
parquet readers to read it.
--
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]