rdblue commented on issue #6796:
URL: https://github.com/apache/iceberg/issues/6796#issuecomment-1426203778

   I looked at @Fokko's PR, but I think that it doesn't address the underlying 
problem.
   
   It looks like the flow here is to take a schema then convert to Iceberg and 
create a table. Then convert the schema to Avro and expect that it matches the 
table. That is incorrect. When writing to a table, you must always use the 
table's schema. Tables are responsible for assigning and tracking field IDs and 
you should never guess at what they will probably be.
   
   The right solution is to convert your schema to Iceberg and create the 
table, then throw it away and use the table's schema. Convert the table schema 
to Avro and write records that way.


-- 
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