Skip to content

read_paimon raises AttributeError on every table with pypaimon 1.4.1 or later #7653

Closed

Description

@RyanLin5967

Describe the bug

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

import tempfile
import daft, pyarrow as pa
from pypaimon import CatalogFactory, Schema

cat = 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

  1. added
    bug
    on Oct 30, 2026
  2. added a commit that references this issue on Nov 10, 2026
    684b41e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions