zeddit opened a new issue, #134:
URL: https://github.com/apache/iceberg-python/issues/134
### Apache Iceberg version
None
### Please describe the bug 🐞
I am using hive metastore.
when accessing a table created with pyiceberg using below statements
```
schema = Schema(
NestedField(field_id=1, name="date", field_type=DateType(),
required=True)
)
catalog.create_table(
identifier="test.table1",
schema=schema,
location='s3a://test/table1',
properties={'write.format.default':'PARQUET'}
)
```
trino pops
```
$ describe iceberg.test.table1;
failed: Cannot parse missing long: current-snapshot-id
```
when using `pyiceberg describe` to check the schema of created table, it
shows
```
pyiceberg describe sort_order_exp.csdate
Table format version 2
Metadata location
s3a://test/table1/metadata/00000-e6826c66-a45b-453d-a8b2-c80132b117…
Table UUID ca9a2a8b-8737-4f96-aaaf-55ff11462225
Last Updated 1699440150722
Partition spec []
Sort order []
Current schema Schema, id=0
└── 1: date: required date
Current snapshot None
Snapshots Snapshots
Properties write.format.default PARQUET
```
while for tables created in trino, all of them have at least one snapshot
and the Current snapshot is set.
pyicberg is not able to set and update Current snapshot so table created by
pyiceberg now could not interoperate well with trino.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]