Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor arrow-ipc: Rename ArrayReader to RecodeBatchDecoder #7028

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jan 27, 2025

Which issue does this PR close?

Rationale for this change

I did not make these changes in #7006 to minimize the diffs

What changes are included in this PR?

  1. Rename ArrayReader -> RecordBatchDecoder
  2. Move the impl as @tustvold suggested in https://github.com/apache/arrow-rs/pull/7006/files#r1929568795

I am working on another PRs to migrate the rest of the IPC reading code to be part of RecordBatchDecoder

Are there any user-facing changes?

No, these are crate internal structures

@alamb alamb force-pushed the alamb/ipc_reader_refactor2 branch from d3265f6 to 4838002 Compare January 27, 2025 10:50
@alamb alamb marked this pull request as ready for review January 27, 2025 10:50
@@ -65,7 +65,7 @@ fn read_buffer(
(false, Some(decompressor)) => decompressor.decompress_to_buffer(&buf_data),
}
}
impl ArrayReader<'_> {
impl RecordBatchDecoder<'_> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The major change is to rename this per @tustvold 's suggestion:

@@ -83,18 +83,17 @@ impl ArrayReader<'_> {
field: &Field,
variadic_counts: &mut VecDeque<i64>,
) -> Result<ArrayRef, ArrowError> {
let reader = self;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed reader alias as well

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants