Repository navigation
GH-44101: [C++][Parquet] Tools: Debug Print for Json should be valid JSON - #44532
Conversation
|
|
||
| // GH-44101: Test that JSON output is valid JSON | ||
| TEST_F(TestJSONWithLocalFile, ValidJsonOutput) { | ||
| auto checkJsonValid = [](std::string_view json_string) -> ::arrow::Status { |
|
https://github.com/apache/arrow/actions/runs/11514744258/job/32053979673?pr=44532 Emmm seems this is orc related, and unrelated to this patch? 🤔 |
|
@mapleFU The error message seems related, perhaps we need to make RapidJSON mandatory when Parquet tests are enabled? |
|
Aha, my bad, will fix this |
| # correctly | ||
| target_link_libraries(parquet_testing PUBLIC ${ARROW_GTEST_GMOCK}) | ||
| list(APPEND PARQUET_TEST_LINK_LIBS parquet_testing) | ||
| list(APPEND PARQUET_TEST_LINK_LIBS parquet_testing RapidJSON) |
There was a problem hiding this comment.
add rapidjson to PARQUET_TEST_LINK_LIBS, hope will not affect too much
|
Would merge this firstly |
|
After merging your PR, Conbench analyzed the 0 benchmarking runs that have been run so far on merge-commit f5691d4. None of the specified runs were found on the Conbench server. The full Conbench report has more details. |
|
After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit f5691d4. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
Rationale for this change
The printJson is not a valid json now. This is ok for human-read, but when I want to analysis it with json tools or ai, it will prevent from using it.
What changes are included in this PR?
Change the output to be a valid json.
Style:
previously, the
\"trailing would be added in start of object, but this patch put it to end of objectBefore:
After:
Are these changes tested?
Yes
Are there any user-facing changes?
Minor format change