Skip to content

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

Merged
rapids-bot[bot] merged 97 commits into
NVIDIA:branch-22.10from
elstehle:feature/json-to-columnar
Aug 12, 2022
Merged

rapids-bot[bot] merged 97 commits into
NVIDIA:branch-22.10from
elstehle:feature/json-to-columnar

Conversation

@elstehle

Copy link
Copy Markdown
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
@karthikeyann
karthikeyann changed the base branch from branch-22.08 to branch-22.10 August 4, 2022 16:19
@karthikeyann karthikeyann mentioned this pull request Aug 4, 2022
3 tasks done
@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

@vuule vuule left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread cpp/tests/io/nested_json_test.cu Resolved
Comment thread cpp/tests/io/nested_json_test.cu Resolved
Comment thread cpp/src/io/json/nested_json.hpp Resolved
Comment thread cpp/src/io/json/nested_json.hpp Resolved
Comment thread cpp/src/io/json/nested_json.hpp Resolved
Comment thread cpp/src/io/json/nested_json.hpp Resolved
Comment thread cpp/src/io/json/nested_json.hpp Resolved
Comment thread cpp/src/io/json/nested_json.hpp Resolved
Comment on lines +1247 to +1249
//--------------------------------------------------------------------------------
// INITIALIZE JSON ROOT NODE
//--------------------------------------------------------------------------------

Copy link
Copy Markdown
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
Copy Markdown
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

@bdice bdice left a comment •

Copy link
Copy Markdown
Contributor

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.

Comment thread cpp/tests/io/nested_json_test.cpp Resolved
Comment thread cpp/tests/io/nested_json_test.cpp Resolved
Comment thread cpp/src/io/json/nested_json.hpp Resolved
Comment thread cpp/src/io/json/nested_json_gpu.cu Resolved
@vuule

vuule commented Aug 12, 2022

Copy link
Copy Markdown
Contributor

@gpucibot merge

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