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

Adds the end-to-end JSON parser implementation #11388

Merged
merged 97 commits into from
Aug 12, 2022

Conversation

elstehle
Copy link
Contributor

Description

This PR builds on the JSON tokenizer algorithm to implement an end-to-end JSON parser that parses to a table_with_metadata.

Chained PR depending on:
⛓️ #11264

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

Thanks to @karthikeyann who provided the initial implementation for converting internal columnar data to cudf columns.

elstehle added 30 commits July 13, 2022 00:53
@github-actions github-actions bot removed the CMake CMake build issue label Aug 6, 2022
@elstehle elstehle marked this pull request as ready for review August 8, 2022 08:08
@upsj upsj self-requested a review August 9, 2022 08:18
@vuule vuule requested a review from nvdbaranec August 10, 2022 01:01
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.

High level review.
Good stuff, mostly docs/naming need to be ironed out.

cpp/tests/io/nested_json_test.cu Outdated Show resolved Hide resolved
cpp/tests/io/nested_json_test.cu Outdated Show resolved Hide resolved
cpp/src/io/json/nested_json.hpp Outdated Show resolved Hide resolved
cpp/src/io/json/nested_json.hpp Outdated Show resolved Hide resolved
cpp/src/io/json/nested_json.hpp Outdated Show resolved Hide resolved
cpp/src/io/json/nested_json.hpp Outdated Show resolved Hide resolved
cpp/src/io/json/nested_json.hpp Show resolved Hide resolved
cpp/src/io/json/nested_json.hpp Outdated Show resolved Hide resolved
Comment on lines +1247 to +1249
//--------------------------------------------------------------------------------
// INITIALIZE JSON ROOT NODE
//--------------------------------------------------------------------------------
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider creating a new function instead of this kind of sections.

Suggested change
//--------------------------------------------------------------------------------
// INITIALIZE JSON ROOT NODE
//--------------------------------------------------------------------------------

auto const& token = tokens_gpu[offset];

#ifdef NJP_DEBUG_PRINT
std::cout << "[" << token_to_string(token) << "]\n";
Copy link
Contributor

Choose a reason for hiding this comment

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

dev: we need to add logging
(fictional) manager: we have logging at home
logging at home:

@github-actions github-actions bot added the CMake CMake build issue label Aug 11, 2022
Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

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

Approving CMake changes - and requesting a couple small C++ include changes.

cpp/tests/io/nested_json_test.cpp Outdated Show resolved Hide resolved
cpp/tests/io/nested_json_test.cpp Outdated Show resolved Hide resolved
cpp/src/io/json/nested_json_gpu.cu Outdated Show resolved Hide resolved
@vuule
Copy link
Contributor

vuule commented Aug 12, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 6035cc2 into rapidsai:branch-22.10 Aug 12, 2022
rapids-bot bot pushed a commit that referenced this pull request Sep 1, 2022
Adds nvbench for nested json parser.
Depends on #11388

Authors:
  - Karthikeyan (https://github.com/karthikeyann)
  - Elias Stehle (https://github.com/elstehle)

Approvers:
  - David Wendt (https://github.com/davidwendt)
  - Nghia Truong (https://github.com/ttnghia)

URL: #11466
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMake CMake build issue cuIO cuIO issue feature request New feature or request 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