Skip to content

Conversation

@phillipleblanc
Copy link
Contributor

Which issue does this PR close?

What changes are included in this PR?

I check the type of the literal scalar against the value we read from the parquet file and convert the literal to match the Parquet Arrow data type.

Are these changes tested?

Tested with a new unit test to cover the different cases.

Copy link
Contributor

@jonathanc-n jonathanc-n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm!

sdd
sdd previously approved these changes May 12, 2025
Copy link
Contributor

@sdd sdd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me - in fact I think I've also encountered this issue before with data written by pyiceberg, so I'm glad to see it fixed!

Approved, with a couple of minor comments to address

@sdd sdd merged commit b81e824 into apache:main May 12, 2025
17 checks passed
@sdd
Copy link
Contributor

sdd commented May 12, 2025

Approved and merged - thanks for your contribution @phillipleblanc 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Iceberg row filter predicates error when they don't match the parquet type

3 participants