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

Merge two RecordBatch #449

Merged
merged 5 commits into from
Jan 22, 2023
Merged

Merge two RecordBatch #449

merged 5 commits into from
Jan 22, 2023

Conversation

eddyxu
Copy link
Contributor

@eddyxu eddyxu commented Jan 22, 2023

No description provided.

/// Get a column by its name.
///
/// Returns None if the column does not exist.
fn column_with_name(&self, name: &str) -> Option<&ArrayRef>;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Upstream arrow-rs provided a similar function recently. Let's remove our own implementation.

@eddyxu eddyxu requested a review from changhiskhan January 22, 2023 21:56
@eddyxu eddyxu self-assigned this Jan 22, 2023
Copy link
Contributor

@changhiskhan changhiskhan left a comment

Choose a reason for hiding this comment

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

pending the unwrap/error thing

self.column,
)))?
.clone();
let vectors = batch[&self.column].clone();
Copy link
Contributor

Choose a reason for hiding this comment

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

return err if it doesn't exist?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@eddyxu eddyxu merged commit 1b057a6 into main Jan 22, 2023
@eddyxu eddyxu deleted the lei/merge_record_batch branch January 22, 2023 22:55
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.

2 participants