Skip to content

Allow file reader to read without setting ReaderOptions::projection #514

Closed

Description

@wgtmac

Currently ReaderOptions::projection (https://github.com/apache/iceberg-cpp/blob/main/src/iceberg/file_reader.h#L111) is required to be set before opening a parquet/avro reader, otherwise an error will be returned complaining about this. It would be good to allow reading all columns from the file if this field is unset.

Activity

  1. dheeraj12347 commented on Jan 21, 2026

    @dheeraj12347

    Hi @wgtmac, I’d like to work on this enhancement.
    My plan is:
    – Update the Parquet/Avro file reader so that when ReaderOptions::projection is unset, it defaults to reading all columns from the file schema instead of returning an error.
    – Add tests to verify reading works both with and without an explicit projection.
    Does this approach align with what you have in mind, especially for any edge cases?

  2. wgtmac commented on Jan 21, 2026

    @wgtmac
    MemberAuthor

    This sounds perfect. Thanks for picking it up!

  3. added 6 commits that reference this issue on Feb 3, 2026
  4. baha-bouali commented on Oct 18, 2026

    @baha-bouali

    I would love to work on this please

  5. wgtmac commented on Oct 19, 2026

    @wgtmac
    MemberAuthor

    @baha-bouali Thanks for your interest! There was an initial attempt which turns out to be a large and complicated change. Feel free to create a PR if you have nice and clean approach.

  6. added a commit that references this issue on Oct 30, 2026
    bb8cd9f
  7. wgtmac commented on Nov 3, 2026

    @wgtmac
    MemberAuthor

    Close this as explained in #1055 (comment)

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions