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

Process ReadRowsResponse with a ChunkReader #10

Merged
merged 21 commits into from
Feb 10, 2019
Merged

Process ReadRowsResponse with a ChunkReader #10

merged 21 commits into from
Feb 10, 2019

Conversation

jscott22
Copy link
Contributor

@jscott22 jscott22 commented Feb 10, 2019

ChunkReader

This PR resolves #8's identified issues with the ReadRowsResponse parsing logic. The issues are addressed by introducing a ChunkReader state machine handled through dynamically created GenServers. The solution is based on the reader from the official Go client library.

The ChunkReader's ability to parse a ReadRowsResponse is validated through unit tests generated using the Google read rows acceptance test JSON file provided in #8

@codecov
Copy link

codecov bot commented Feb 10, 2019

Codecov Report

Merging #10 into master will increase coverage by 8.17%.
The diff coverage is 96.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
+ Coverage   70.35%   78.53%   +8.17%     
==========================================
  Files          22       23       +1     
  Lines         253      368     +115     
==========================================
+ Hits          178      289     +111     
- Misses         75       79       +4
Impacted Files Coverage Δ
lib/supervisor.ex 100% <ø> (ø) ⬆️
lib/operations/read_rows.ex 80% <83.33%> (ø) ⬆️
lib/chunk_reader/chunk_reader.ex 97.16% <97.16%> (ø)
lib/operations/mutate_rows.ex 100% <0%> (ø) ⬆️
lib/operations/mutate_row.ex 100% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 16b7195...07dbcb7. Read the comment docs.

@jscott22 jscott22 merged commit bf85548 into master Feb 10, 2019
@rockneurotiko
Copy link
Contributor

Awesome PR! 💯

@jscott22 jscott22 deleted the read-refactor branch February 18, 2019 12:45
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.

ReadRows merge acceptance tests
2 participants