Skip to content

Provide mechanism to cache manifest file content across several planFiles call #4508

@rizaon

Description

@rizaon

Iceberg planFiles API has benefit of filtering out unnecessary files given a set of filter predicates. During query planning, a query engine might need to call planFiles against the same table multiple times but with slightly different filter predicates for each scan. This lead to repeated manifest files reading over the same table. It is often expensive, especially if it involve remote reads through network. Certain stream operation such as backward seek and small reads characteristics by Avro library can have high latency depending on the target file system / cloud connector.

Having ability to cache manifest content in memory for several planFiles calls can improve performance. One idea is to add method in TableScanContext.java to supply a caffeine cache, say Cache<String, byte[]>, and pass it further to AvroIO.java. In turn, AvroIO can consult with this cache and use the cached manifest file content if it is available.

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