-
Notifications
You must be signed in to change notification settings - Fork 251
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
Support Limit / Offset #45
Conversation
This implement has a few caveats:
For |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nits
q_(std::move(other.q_)) {} | ||
|
||
::arrow::Status Scanner::Open() { | ||
schema_ = std::make_shared<lance::format::Schema>(reader_->schema()); | ||
ARROW_ASSIGN_OR_RAISE(project_, Project::Make(schema_, options_)); | ||
ARROW_ASSIGN_OR_RAISE(project_, Project::Make(schema_, options_, limit_, offset_)); | ||
if (!project_->CanParallelScan()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to implement some data structure that tracks some mapping of chunk no -> offset/length? So there will be some "over reading" that gets discarded?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you elaborate a bit? I am confused. In what case will over-reading
occur?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parallel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Did you mean hedged read? Yes, we can do hedged read later, we can discuss the design choices in #48.
No description provided.