Apache Iceberg version
0.6.1 (latest release)
Please describe the bug 🐞
It seems that when inserting a pyarrow table containing UTC information created using the pendulum library into an iceberg table, an error occurs due to the inability to convert to the timestampz type.
import pendulum
import pyarrow as pa
import numpy as np
test_data_with_tz = {
"date_time": [pendulum.now() for _ in range(nums)], #with timezone
"int_data": [i for i in range(nums)],
"str_data": ["v" for _ in range(nums)],
"struct_data": [{"v_a": np.random.rand(1000), "v_b": np.random.rand(1000) } for i in range(nums)],
}
pa_table_with_tz = pa.Table.from_pydict(test_data_with_tz)
catalog.create_table(identifier=("test", "test"), schema=pa_table_with_tz.schema)
TypeError: Unsupported type: timestamp[us, tz=Etc/UTC]