ktk1012 opened a new issue, #8013:
URL: https://github.com/apache/iceberg/issues/8013
### Apache Iceberg version
1.3.0 (latest release)
### Query engine
Athena
### Please describe the bug 🐞
pyiceberg version: 0.4.0
Athena query runs indefinitely on table which created by pyiceberg
Below code creates test iceberg table in glue data catalog. And than,
running any query on athena console shows loading indicator indefinitely. I'm
working on athena engine version 3
---
```python
from pyiceberg import partitioning, schema, transforms, types
from pyiceberg.table import sorting
from pyiceberg.catalog import load_catalog
_target_table_schema = schema.Schema(
types.NestedField(
1,
"id",
types.LongType(),
True,
),
types.NestedField(
2,
"timestamp",
types.TimestampType(),
True,
),
types.NestedField(
3,
"block_hash",
types.StringType(),
True,
),
types.NestedField(
4,
"external",
types.BooleanType(),
True,
),
)
_target_table_partition = partitioning.PartitionSpec(
partitioning.PartitionField(
1,
1000,
transforms.TruncateTransform(10000),
name="id_trunc_10000",
))
_target_table_sort_order = sorting.SortOrder(
sorting.SortField(
1,
transforms.IdentityTransform(),
sorting.SortDirection.ASC,
),
sorting.SortField(
2,
transforms.IdentityTransform(),
sorting.SortDirection.ASC,
),
)
glue_catalog = load_catalog("glue", type='glue')
glue_catalog.create_table(
identifier = ("test_database", "test_table"),
schema=_target_table_schema,
location="s3://<some_location>", # Speicify some s3 location
partition_spec=_target_table_partition,
sort_order=_target_table_sort_order
)
```
--
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]