You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
read_paimon raises AttributeError on every table with pypaimon 1.4.1 or later #7653
Currently, read_paimon calls .get("warehouse", "") on the table's file_io.properties as if it were a dict, but since pypaimon 1.4.1 that's an Options whose get takes a ConfigOption, so every read fails. With pypaimon 1.3.2 the same read works.
To Reproduce
importtempfileimportdaft, pyarrowaspafrompypaimonimportCatalogFactory, Schemacat=CatalogFactory.create({"warehouse": tempfile.mkdtemp()})
cat.create_database("db", True)
cat.create_table("db.t", Schema.from_pyarrow_schema(pa.schema([("x", pa.int64())])), False)
daft.from_pydict({"x": [1, 2]}).write_paimon(cat.get_table("db.t"))
print(daft.read_paimon(cat.get_table("db.t")).to_pydict())
# AttributeError: 'str' object has no attribute 'key'rb=cat.get_table("db.t").new_read_builder()
print(rb.new_read().to_arrow(rb.new_scan().plan().splits()).to_pydict())
# {'x': [1, 2]}, so the table and daft.write_paimon are fine
Passing io_config fails the same way, at the second catalog_options.get("warehouse", "").
Expected behavior
{'x': [1, 2]}, the rows pypaimon's own reader returns.
Component(s)
Data Sources & Sinks
Additional context
daft 0.7.26 and main, pypaimon 2.1.0, pyarrow 19.0.1, Python 3.12.16, macOS 26.7.1, arm64 (Darwin 25.6.0). pypaimon 1.4.1, 1.4.2 and 2.0.0 fail the same way.
The Paimon connector page says pip install pypaimon with no version, which installs 2.1.0. #6829 changed how read_paimon reads file_io.properties while bumping pypaimon to 1.4.1 and was closed without merging.
Activity
fix(paimon): read catalog options from pypaimon Options objects (Even…