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 read_avro by removing unnecessary writer/impl classes #9090

Merged
merged 23 commits into from
Aug 31, 2021

Conversation

cwharris
Copy link
Contributor

Depends on #9040

@github-actions github-actions bot added Python Affects Python cuDF API. libcudf Affects libcudf (C++/CUDA) code. labels Aug 21, 2021
@cwharris cwharris added cuIO cuIO issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change tech debt labels Aug 21, 2021
@codecov
Copy link

codecov bot commented Aug 21, 2021

Codecov Report

❗ No coverage uploaded for pull request base (branch-21.10@a153493). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##             branch-21.10    #9090   +/-   ##
===============================================
  Coverage                ?   10.76%           
===============================================
  Files                   ?      114           
  Lines                   ?    19086           
  Branches                ?        0           
===============================================
  Hits                    ?     2055           
  Misses                  ?    17031           
  Partials                ?        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 a153493...98ab9c9. Read the comment docs.

@github-actions github-actions bot removed the Python Affects Python cuDF API. label Aug 24, 2021
@cwharris cwharris marked this pull request as ready for review August 24, 2021 19:37
@cwharris cwharris requested a review from a team as a code owner August 24, 2021 19:37
cpp/src/io/avro/reader_impl.cu Outdated Show resolved Hide resolved
cpp/src/io/avro/reader_impl.cu Outdated Show resolved Hide resolved
cpp/include/cudf/io/detail/avro.hpp Show resolved Hide resolved
cpp/src/io/avro/reader_impl.cu Outdated Show resolved Hide resolved
@cwharris
Copy link
Contributor Author

@ttnghia @harrism This PR contains the bare minimum changes to remove the reader and impl classes for avro. That change reveals a lot of other improvements we can make to the code, which is why I decided to do it, not just for avro but for json and csv as well. JSON and CSV are much more complicated change sets than this one. For those, I think it made sense to restrict the changes to the bare minimum.

After reading your comments, however, it seems that this PR is simple enough that it can still stand some more improvements without becoming overly complicated. I'll take another pass at general improvements to the code. Thanks!

@cwharris
Copy link
Contributor Author

I did another pass, enforcing const-ness where possible, and doing general cleanup.

@cwharris cwharris requested review from ttnghia and harrism August 25, 2021 06:09
Copy link
Contributor

@ttnghia ttnghia left a comment

Choose a reason for hiding this comment

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

Just some more nit about const positions. Hope that I don't miss any 😃

cpp/src/io/avro/avro_gpu.cu Outdated Show resolved Hide resolved
cpp/src/io/avro/avro_gpu.cu Outdated Show resolved Hide resolved
cpp/src/io/avro/avro_gpu.cu Outdated Show resolved Hide resolved
cpp/src/io/avro/avro_gpu.h Outdated Show resolved Hide resolved
cpp/src/io/avro/reader_impl.cu Outdated Show resolved Hide resolved
cpp/src/io/avro/reader_impl.cu Outdated Show resolved Hide resolved
cpp/src/io/avro/reader_impl.cu Outdated Show resolved Hide resolved
cpp/src/io/avro/reader_impl.cu Outdated Show resolved Hide resolved
cpp/src/io/avro/reader_impl.cu Outdated Show resolved Hide resolved
cpp/src/io/avro/reader_impl.cu Outdated Show resolved Hide resolved
@cwharris cwharris requested a review from ttnghia August 26, 2021 03:10
@cwharris
Copy link
Contributor Author

@ttnghia while I prefer east const, it is not enforced by style checks.

cpp/src/io/avro/avro_gpu.h Outdated Show resolved Hide resolved
@cwharris cwharris requested a review from ttnghia August 26, 2021 03:26
@cwharris
Copy link
Contributor Author

rerun tests

@cwharris cwharris requested a review from vuule August 27, 2021 17:57
@cwharris
Copy link
Contributor Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 4ad09aa into rapidsai:branch-21.10 Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuIO cuIO issue improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants