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

Simplify RecordBatchReader to use Project.next() #139

Merged
merged 4 commits into from
Sep 4, 2022
Merged

Conversation

eddyxu
Copy link
Contributor

@eddyxu eddyxu commented Sep 4, 2022

No description provided.

@@ -18,6 +18,7 @@
#include <arrow/result.h>
#include <fmt/format.h>

#include "lance/arrow/file_lance_ext.h"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Forgot to push these changes from the last PR.

@eddyxu eddyxu requested a review from changhiskhan September 4, 2022 04:16
@eddyxu eddyxu self-assigned this Sep 4, 2022
@eddyxu eddyxu added c++ C++ issues arrow Apache Arrow related issues labels Sep 4, 2022
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.

one nit

std::optional<int64_t> limit;
int64_t offset;
if (scan_options->fragment_scan_options &&
scan_options->fragment_scan_options->type_name() == "lance") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's extract the string check into a util function?

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 5611f1a into main Sep 4, 2022
@eddyxu eddyxu deleted the lei/batch_reader branch September 4, 2022 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Apache Arrow related issues c++ C++ issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants