Skip to content

fix: Don't return Value::Null on EOF in decode.rs - #664

Merged
Kriskras99 merged 1 commit into
mainfrom
fix/null_on_eof
Sep 7, 2026
Merged

Kriskras99 merged 1 commit into
mainfrom
fix/null_on_eof

Conversation

@Kriskras99

Copy link
Copy Markdown
Contributor

This corrupt a union that is being decoded and makes the decoded value not match the schema.

Reported-by: Security scans

This corrupt a union that is being decoded and makes the decoded value
not match the schema.

Reported-by: Security scans
@Kriskras99
Kriskras99 merged commit c12ab35 into main Sep 7, 2026
16 checks passed
@Kriskras99
Kriskras99 deleted the fix/null_on_eof branch September 7, 2026 06:47
@kevinjqliu

Copy link
Copy Markdown

I was just looking into this issue from the iceberg-rust side, thank you for fixing it! 😄

@Kriskras99

Copy link
Copy Markdown
Contributor Author

@kevinjqliu I would recommend you to use the Serde deserializer where possible. It is significantly faster if you need to have Rust datatypes after decoding/before encoding. But if you work with generic data that is of course not always possible.

@kevinjqliu

kevinjqliu commented Sep 12, 2026 •

Copy link
Copy Markdown

Yessss I believe that’s part of the new 0.22 release. We need to upgrade the library, alraedy tracking that work in apache/iceberg-rust#3063. I ran some numbers it’s around 5x faster than our current implementation and on par with a Cython avro reader from iceberg-python. Super excited to include it in iceberg-rust.

Thanks again for the awesome work!!

@martin-g martin-g added this to the 0.23.0 milestone Sep 13, 2026
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.

3 participants