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

DRILL-7734: Revise the result set reader #2077

Closed
wants to merge 2 commits into from

Conversation

paul-rogers
Copy link
Contributor

DRILL-7734: Revise the result set reader

Description

The "result set reader" uses the column accessors to iterate over rows from multiple batches, similar to how the "result set loader" creates batches in a scan. This PR refactors the code to clarify the two ways that the reader is used. First, the "pull" reader in one operator reads ("pulls") batches from an upstream operator. To implement JSON streaming, we need a second model, a "push" version where a caller provides batches.

Documentation

N/A

Testing

Added tests. Reran all unit tests.

@vvysotskyi
Copy link
Member

@paul-rogers, changes look good. Could you please resolve the checkstyle failure?

Revised into two forms: push (for streaming JSON results) and
pull (for one operator reading from another).
@paul-rogers
Copy link
Contributor Author

@vvysotskyi thanks for the review! Addressed checkstyle issue. Rebased on latest master.

Copy link
Member

@vvysotskyi vvysotskyi left a comment

Choose a reason for hiding this comment

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

LGTM, +1

@asfgit asfgit closed this in 953280b May 25, 2020
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