Skip to content

[python] Support prefix lookup #536

@fresh-borzoni

Description

@fresh-borzoni

Search before asking

  • I searched in the issues and found nothing similar.

Description

The Python binding already exposes a Lookuper for primary-key lookups, and prefix scan is essentially the same shape with two small differences: it takes a list of column names up front (telling Fluss which prefix to scan by), and it returns a list of rows instead of an Optional single row. So the work is mostly mirroring the existing class, wrap the core PrefixKeyLookuper type from Rust, accept a Python dict/tuple as the prefix key, and call the existing row-to-dict helper in a loop to convert the multi-row result into list[dict].

Then a small entry point on the Python Table to actually create one, a few lines in the .pyi stubs so type-checkers see it, and a couple of integration tests covering the happy path and the validation errors that Rust already raises.

Willingness to contribute

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions