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

Setting BatchSize via ScanBuilder #135

Merged
merged 2 commits into from
Sep 1, 2022
Merged

Setting BatchSize via ScanBuilder #135

merged 2 commits into from
Sep 1, 2022

Conversation

eddyxu
Copy link
Contributor

@eddyxu eddyxu commented Sep 1, 2022

Setting BatchSize via lance::arrow::ScanBuilder

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

lgtm

@@ -33,6 +33,8 @@ void ScannerBuilder::Project(const std::vector<std::string>& columns) { columns_

void ScannerBuilder::Filter(const ::arrow::compute::Expression& filter) { filter_ = filter; }

void ScannerBuilder::BatchSize(int64_t batch_size) { batch_size_ = batch_size; }
Copy link
Contributor

Choose a reason for hiding this comment

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

What are valid values for batch_size? Do we need to validate that here or is it better to do it somewhere else?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. Lemme just change the interface to resemble arrow::dataset::ScannBuilder then.

https://arrow.apache.org/docs/cpp/api/dataset.html#scanning

@eddyxu eddyxu merged commit ebbb7f0 into main Sep 1, 2022
@eddyxu eddyxu deleted the lei/scanner_bsize branch September 1, 2022 21:29
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