Skip to content

Conversation

@mjgarton
Copy link
Contributor

Avoid unwrapping Result<RecordBatch> because it can sometimes be an Err variant. If so, instead of iterating over the records in the batch, iterator over a single error value, so the error will end up being handled by the calling code.

Avoid unwrapping `Result<RecordBatch>` because it can sometimes be an
Err variant.  If so, instead of iterating over the records in the batch,
iterator over a single error value, so the error will end up being
handled by the calling code.
Copy link
Member

@sunng87 sunng87 left a comment

Choose a reason for hiding this comment

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

Thank you!

@sunng87 sunng87 merged commit 0a52b70 into datafusion-contrib:master Jan 29, 2025
6 checks passed
@mjgarton mjgarton deleted the avoid_recordbatch_result_unwrap branch January 29, 2025 11:57
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