Skip to content

Looking for efficient way to query specific partitions from metadata #2562

@emilie-wang

Description

@emilie-wang

Feature Request / Improvement

Hi pyiceberg community,

Is there a more efficient way than the API table.inspect.partitions() to query specific partitions?

The table.inspect.partitions() seems expensive as it reads all manifest files, especially when the table has many partitions, while we only need to check a few recent partitions.

I have a few questions about this use case:

  • Is there any more efficient way to do this that I am missing?
  • If not, can I propose something like partitions_filtered(partition_filter) to get the specific partition by reusing the work
    def plan_files(self) -> Iterable[FileScanTask]:

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions