Skip to content

Page index evaluation panics on binary column predicates #3246

Closed

Description

@anoopj

Apache Iceberg Rust version

current main (commit 8193cce)

Describe the bug

A predicate on a binary column crashes the scan when the Parquet file has a page index. PageIndexEvaluator decodes every BYTE_ARRAY page bound as a UTF-8 string:

PrimitiveLiteral::String(String::from_utf8(val.to_vec()).unwrap())

Binary bounds usually aren't valid UTF-8, so the unwrap() panics. Byte-encoded decimal bounds (from some non-standard writers) hit the same path.

The fix is to decode the bound based on the column's type instead of assuming UTF-8, the same way arrow/schema.rs already does for row-group stats.

To Reproduce

No response

Expected behavior

No response

Willingness to contribute

None

Activity

  1. added
    bug
    on Sep 18, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions