You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[avro] Fix Avro decoder bitmap corruption when nullable field decoding fails (#8213)
# Which issue does this PR close?
- Closes#8212
# Rationale for this change
In the original code, the bitmap was modified before decoding. Even if
decoding fails, the null buffer was modified, leading to bitmap
corruption, eventually causing flush to fail.
# What changes are included in this PR?
This PR fixes the bug where the bitmap was modified before decoding. If
there is decoding failure, the bitmap should not be modified but the
decode method should be exited gracefully without any side effect.
# Are these changes tested?
- Added a unit test
# Are there any user-facing changes?
No.
0 commit comments