You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "kamaljit-1991 (via GitHub)" <gi...@apache.org> on 2023/05/06 15:31:38 UTC

[GitHub] [iceberg] kamaljit-1991 commented on issue #6122: IcebergGenerics.read(table) doesn't work as expected

kamaljit-1991 commented on issue #6122:
URL: https://github.com/apache/iceberg/issues/6122#issuecomment-1537165802

   Correct @RussellSpitzer . I verified even after updating `TableProperties.DEFAULT_NAME_MAPPING` to the proper json value containing the field-id, names and fields exactly mentioned in [here](https://iceberg.apache.org/spec/#name-mapping-serialization) such as in one of my table's metadata contains : 
   ```
   "properties" : {
       "schema.name-mapping.default" : "[{\"names\":[\"_fivetran_synced\"],\"field-id\":1},{\"names\":[\"id\"],\"field-id\":2},{\"names\":[\"attr\"],\"field-id\":3}]",
       "table_type" : "ICEBERG"
     },
   ```
   
   Still IcebergGenerics fails to read the table and fails with the same kind of exception : 
   ```
   java.lang.ClassCastException: class org.apache.iceberg.types.Types$StringType cannot be cast to class org.apache.iceberg.types.Types$TimestampType (org.apache.iceberg.types.Types$StringType and org.apache.iceberg.types.Types$TimestampType are in unnamed module of loader 'app')
   ```
   
   Do you think this should be considered as bug and it should be fixed in IcebergGenerics?


-- 
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-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org