You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "zartstrom (via GitHub)" <gi...@apache.org> on 2024/02/16 08:23:33 UTC

[I] Empty iceberg table created with PyIceberg in AWS Glue misses location and schema [iceberg-python]

zartstrom opened a new issue, #435:
URL: https://github.com/apache/iceberg-python/issues/435

   ### Apache Iceberg version
   
   None
   
   ### Please describe the bug 🐞
   
   I want to create an empty [Iceberg](https://iceberg.apache.org/) table with [PyIceberg](https://py.iceberg.apache.org/) in AWS Glue. The snippet below creates the table, but does not show the location and schema information in AWS Glue.
   What am I missing?
   
   ![Missing location](https://i.stack.imgur.com/a8imh.png)
   
   ![Missing schema](https://i.stack.imgur.com/1t1Oy.png)
   
   
   ```python
   from pyiceberg.catalog import load_catalog
   from pyiceberg.schema import Schema
   from pyiceberg.types import TimestampType, StringType, NestedField
   
   schema = Schema(
       NestedField(field_id=1, name="datetime", field_type=TimestampType()),
       NestedField(field_id=2, name="job_id", field_type=StringType()),
       NestedField(field_id=3, name="result", field_type=StringType()),
       NestedField(field_id=4, name="description", field_type=StringType()),
   )
   
   if __name__ == "__main__":
       catalog = load_catalog(
           "default",
           **{
               "type": "glue",
           },
       )
   
       catalog.create_table(
           identifier=f"manually_created.my_test_table",
           schema=schema,
           location="s3://my_test_bucket/my_test_table",
       )
   ```
   with version pyiceberg==0.5.1.


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


Re: [I] Empty iceberg table created with PyIceberg in AWS Glue misses location and schema [iceberg-python]

Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko commented on issue #435:
URL: https://github.com/apache/iceberg-python/issues/435#issuecomment-1948319083

   @zartstrom Thanks for raising this! 👍 
   
   I think this has been fixed in https://github.com/apache/iceberg-python/pull/288. Can you try this by installing [the latest RC `pip install==0.6.0rc4`](https://pypi.org/project/pyiceberg/0.6.0rc6/).


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