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_json by removing unnecessary reader/impl classes #9088

Merged
merged 34 commits into from
Nov 11, 2021

Conversation

cwharris
Copy link
Contributor

@cwharris cwharris commented Aug 21, 2021

Depends on #9040

Removes the json reader and impl classes, replacing member variables with local variables, reduces cognitive overhead, and facilitates further refactoring.

@github-actions github-actions bot added Python Affects Python cuDF API. libcudf Affects libcudf (C++/CUDA) code. labels Aug 21, 2021
@cwharris cwharris added the cuIO cuIO issue label Aug 21, 2021
@vuule
Copy link
Contributor

vuule commented Sep 17, 2021

I think Elias and I can get it over the finish line, but not in 21.10. Since this is an internal refactoring, there's no reason to push for 21.10 anyway.

@karthikeyann
Copy link
Contributor

karthikeyann commented Oct 8, 2021

@cwharris moved to 21.12. Adding In-Progress label.

@karthikeyann karthikeyann changed the base branch from branch-21.10 to branch-21.12 October 8, 2021 16:33
@vuule vuule requested a review from elstehle October 27, 2021 21:33
Copy link
Contributor

@vuule vuule left a comment

Choose a reason for hiding this comment

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

Looks good, just got a couple of questions.

cpp/src/hash/concurrent_unordered_map.cuh Show resolved Hide resolved
cpp/src/io/json/json_gpu.cu Show resolved Hide resolved
Copy link
Contributor

@elstehle elstehle left a comment

Choose a reason for hiding this comment

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

Almost through with the review. Looks good to me so far, I like the refactoring.

cpp/src/io/json/json_gpu.cu Show resolved Hide resolved
@cwharris cwharris requested review from vuule and elstehle November 1, 2021 17:08
Copy link
Contributor

@rgsl888prabhu rgsl888prabhu left a comment

Choose a reason for hiding this comment

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

Looks good, just small set of questions or comments

cpp/include/cudf/io/detail/json.hpp Show resolved Hide resolved
cpp/src/io/json/json_common.h Show resolved Hide resolved
cpp/src/io/json/reader_impl.cu Show resolved Hide resolved
cpp/src/io/json/reader_impl.hpp Show resolved Hide resolved
Copy link
Contributor

@mythrocks mythrocks left a comment

Choose a reason for hiding this comment

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

Sorry for the delay. I'm 👍 on the change. Just a few minor questions.

Copy link
Contributor

@elstehle elstehle left a comment

Choose a reason for hiding this comment

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

LGTM; nothing more to add. Would just ask to address the other's comments before merging.

@jrhemstad
Copy link
Contributor

rerun tests

@cwharris
Copy link
Contributor Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 77dc477 into rapidsai:branch-21.12 Nov 11, 2021
rapids-bot bot pushed a commit that referenced this pull request Nov 11, 2021
These are some minor updates requested for PR #9088 that I forgot to push prior to merging the PR.

Authors:
  - Christopher Harris (https://github.com/cwharris)

Approvers:
  - Bradley Dice (https://github.com/bdice)
  - Nghia Truong (https://github.com/ttnghia)

URL: #9659
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 - In Progress Currently a work in progress 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.

8 participants