kevinjqliu commented on issue #541: URL: https://github.com/apache/iceberg-python/issues/541#issuecomment-2016890280
Hey @dev-goyal, do you mind posting a snippet of your example above? I think this is very similar to #520 In #520, the iceberg table is created with pyarrow schema. Internally, iceberg converts the schema and "downcast" certain types ([large_string -> string](https://github.com/apache/iceberg-python/blob/6989b92c2d449beb9fe4817c64f619ea5bfc81dc/pyiceberg/io/pyarrow.py#L880-L881), [timestamp nano -> timestamp](https://github.com/apache/iceberg-python/blob/6989b92c2d449beb9fe4817c64f619ea5bfc81dc/pyiceberg/io/pyarrow.py#L884-L885)). So when the pyarrow data (with the same schema) is saved as iceberg table, there is a schema mismatch. Iceberg schema is downcast/translated while pyarrow data schema is unchanged. #523 should help solve this -- 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