Skip to content

refactor(arrow-avro): use Decoder::flush_block in async reader#9726

Merged
alamb merged 1 commit intoapache:mainfrom
mzabaluev:use-flush-block-in-avro-async-reader
Apr 22, 2026
Merged

refactor(arrow-avro): use Decoder::flush_block in async reader#9726
alamb merged 1 commit intoapache:mainfrom
mzabaluev:use-flush-block-in-avro-async-reader

Conversation

@mzabaluev
Copy link
Copy Markdown
Contributor

@mzabaluev mzabaluev commented Apr 15, 2026

Since the async reader only reads OCF files and uses Decoder::decode_block to decode, use flush_block for consistency and to avoid an unnecessary check for mid-content schema changes.

Are these changes tested?

No new behavior is introduced, the existing tests should pass.

Are there any user-facing changes?

No

In arrow-avro.
Since the async reader only reads OCF files and uses decode_block to
decode, use flush_block for consistency and to avoid unnecessary
checks.
@github-actions github-actions Bot added arrow Changes to the arrow crate arrow-avro arrow-avro crate labels Apr 15, 2026
@alamb
Copy link
Copy Markdown
Contributor

alamb commented Apr 16, 2026

What problem is this PR solving? I am not super familiar with the code

@mzabaluev
Copy link
Copy Markdown
Contributor Author

mzabaluev commented Apr 17, 2026

It's just a minor cleanup that I did initially while working on #9611, but one of the reviewers flagged that it should be submitted separately. Perhaps I shouldn't have bothered to split it out.

Copy link
Copy Markdown
Contributor

@alamb alamb 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

Thank you @mzabaluev

@alamb alamb merged commit 5912469 into apache:main Apr 22, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate arrow-avro arrow-avro crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants