kevinjqliu commented on issue #1025:
URL: 
https://github.com/apache/iceberg-python/issues/1025#issuecomment-2276218470

   You can certainly create a Python function to translate from the JSON to 
Iceberg Schema. You might need to hard code some type mapping though. For 
example, there's no `bigint` in the Iceberg Schema types. 
   
   Another option is to translate the JSON to pyarrow schema and use 
[`pyarrow_to_schema`](https://github.com/apache/iceberg-python/blob/eca98707f30bdaf1ffd19f039058cc7e18c5f9cb/pyiceberg/io/pyarrow.py#L816-L818)
 to create Iceberg Schema


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