ndrluis opened a new issue, #971:
URL: https://github.com/apache/iceberg-python/issues/971
### Apache Iceberg version
main (development)
### Please describe the bug 🐞
Version: 0.7.0rc2
In 0.7.0rc1 we don't have this problem.
Code to reproduce the warning
```python
from pyiceberg.catalog import load_catalog
import pyarrow as pa
from pyiceberg.schema import Schema
from pyiceberg.types import NestedField, StringType, DoubleType
catalog = load_catalog(
"demo",
**{
"type": "rest",
"uri": "http://localhost:8181",
"s3.endpoint": "http://localhost:9000",
"s3.access-key-id": "admin",
"s3.secret-access-key": "password",
"warehouse": "demo",
},
)
catalog.create_namespace_if_not_exists("default")
schema = Schema(
NestedField(1, "city", StringType(), required=False),
NestedField(2, "lat", DoubleType(), required=False),
NestedField(3, "long", DoubleType(), required=False),
)
tbl = catalog.create_table_if_not_exists("default.cities", schema=schema)
df = pa.Table.from_pylist(
[
{"city": "Amsterdam", "lat": 52.371807, "long": 4.896029},
{"city": "San Francisco", "lat": 37.773972, "long": -122.431297},
{"city": "Drachten", "lat": 53.11254, "long": 6.0989},
{"city": "Paris", "lat": 48.864716, "long": 2.349014},
],
)
tbl.append(df)
```
The append process is working but we receive this warning
```
UserWarning: Pydantic serializer warnings:
Expected `TableIdentifier` but got `dict` - serialized value may not be as
expected
return self.__pydantic_serializer__.to_json(
```
--
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]