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: Move create_*_array methods into RecordBatchDecoder #7029

Open
wants to merge 3 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?

Closes #.

Rationale for this change

Continue moving the arrow-ipc deoder functionality into a struct so that flags may be passed down

What changes are included in this PR?

  1. Move create_primitive_array into RecordBatchReader
  2. Move create_list_array into RecordBatchReader
  3. Move create_dictionay_array into RecordBatchReader

Are there any user-facing changes?

No, this is entirely internal reorganizaton

@github-actions github-actions bot added the arrow Changes to the arrow crate label Jan 27, 2025
@alamb alamb force-pushed the alamb/ipc_reader_refactor3 branch from 137422c to e08ad17 Compare February 6, 2025 19:44
self.require_alignment,
),
];
self.create_primitive_array(field_node, data_type, &buffers)
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 idea here is to simply call self. instead of free functions like create_primitive_array

Copy link
Contributor Author

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

The diff is even smaller when viewed without whitespace: https://github.com/apache/arrow-rs/pull/7029/files?w=1

@alamb alamb marked this pull request as ready for review February 6, 2025 20:59
@alamb
Copy link
Contributor Author

alamb commented Feb 7, 2025

@tustvold I wonder if you have some time to review this (very small without whitespace) diff inline with others we have worked on

@alamb alamb requested a review from tustvold February 7, 2025 16:25
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.

1 participant