-
Notifications
You must be signed in to change notification settings - Fork 418
Closed
Description
Apache Iceberg version
0.7.0rc2
Please describe the bug 馃悶
In 0.7.0rc1 we don't have this problem.
Code to reproduce the warning
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(
Metadata
Metadata
Assignees
Labels
No labels