-
Notifications
You must be signed in to change notification settings - Fork 915
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
Cleanup common parsing code in JSON, CSV reader #12022
Merged
rapids-bot
merged 50 commits into
rapidsai:branch-22.12
from
karthikeyann:fea-json-parsing-error-null
Nov 15, 2022
Merged
Changes from 49 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
4423d20
trim quotes for non-string values in nested json parsing
karthikeyann 1d69a69
add pytest compare cudf, cudf_experimental on values with quotes
karthikeyann b680e3f
remove unnecessary quote removal in timestamp and duration decode_value
karthikeyann 49bdbb6
Merge branch 'branch-22.12' of github.com:rapidsai/cudf into fix-quot…
karthikeyann 46663cf
null check before removing quotes
karthikeyann d2b76e3
return std::optional from parse_numeric, for validating parsing
karthikeyann c953410
add unit tests of corner cases
karthikeyann 1646bcc
fix old json reader to treat "null" as string.
karthikeyann f0c468b
cleanup decode_digit
karthikeyann cad413c
fix doc
karthikeyann bbb434a
add TODO invalid input for decimal, duration, timestamp
karthikeyann 0910f2e
fix bug in csv_reader_options construction in cython
karthikeyann 31636ea
add pytest for breaking behaviour in read_csv
karthikeyann d2757dc
fix bug in csv_reader_options construction in cython
karthikeyann e26b3d8
add pytest for breaking behaviour in read_csv
karthikeyann 27c8059
Merge branch 'branch-22.12' of github.com:rapidsai/cudf into fix-quot…
karthikeyann e119fac
parsing error in numeric types should make that element null
karthikeyann 3f8eb52
revert parsing error changes
karthikeyann e0f6e3d
unit tests for string quotes
karthikeyann 1317be3
remove debug prints
karthikeyann ce863b3
replace @param[in] with @param
karthikeyann d9fc33b
nan fix moved to PR #12022
karthikeyann 1a6b10d
Merge branch 'fix-csv_reader_options-cython-bug' of github.com:karthi…
karthikeyann 2ec4bd8
null for parsing error in bool - update pytest
karthikeyann ff77d5f
doc update
karthikeyann ba36b86
skip writing NAN for floating type for nulls
karthikeyann 3e71482
fix dereferencing {begin - 1} in json reader
karthikeyann 9b64cbd
doc update
karthikeyann 90cdf3a
ignore data for nulls in CsvReaderTest.InvalidFloatingPoint test
karthikeyann 6710b47
add pandas test for custom bool literals
karthikeyann 99eedc0
Update python/cudf/cudf/tests/test_csv.py
karthikeyann 0415252
static_cast<std::ptrdiff_t> for is_quoted in pointer arithmetic
karthikeyann 8f9cca4
Merge branch 'pull-request/11898' of github.com:rapidsai/cudf into fe…
karthikeyann da4b16f
skip nan check for null elements in test
karthikeyann 0c695b8
Merge branch 'pull-request/12021' of github.com:rapidsai/cudf into fe…
karthikeyann 53e0f2b
Apply suggestions from code review
karthikeyann dd6a0ca
Update cpp/src/io/utilities/parsing_utils.cuh
karthikeyann cc2a348
review comments, style fix
karthikeyann dc228e5
pandas vs cudf csv parser differences
karthikeyann 72a78be
Merge branch 'branch-22.12' of github.com:rapidsai/cudf into fix-csv_…
karthikeyann d86a5a0
Merge branch 'pull-request/11898' of github.com:rapidsai/cudf into fe…
karthikeyann 4486193
Merge branch 'pull-request/12021' of github.com:rapidsai/cudf into fe…
karthikeyann efe6619
Merge branch 'branch-22.12' into fea-json-parsing-error-null
karthikeyann 6fb3f96
Merge branch 'branch-22.12' of github.com:rapidsai/cudf into fea-json…
karthikeyann 7e231ac
Apply suggestions from code review
karthikeyann d7fb88c
address review comments
karthikeyann 6fbd8ac
Merge branch 'branch-22.12' of github.com:rapidsai/cudf into fea-json…
karthikeyann bea7fc3
replace std::nullopt
karthikeyann 0e45d13
remove breaking behavior on nulls
karthikeyann df6844c
TODO clarify
karthikeyann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please make these TODOs clearer if we're planning to merge them?
I looked into the code and don't see that invalid input is handled in a robust way in
parse_decimal
andto_timestamp
. Is that what this TODO needs to remind us of?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. this
TODO
is a reminder for future and also to remind reviewers to discuss and decide what is invalid input for this type.