-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-44101: [C++][Parquet] Tools: Debug Print for Json should be valid …
…JSON (#44532) ### 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 object Before: ``` stream << "\", \"number\":\"" << number; stream << "\"..."; ``` After: ``` stream << ", \"number\":\"" << number << "\""; ``` ### Are these changes tested? Yes ### Are there any user-facing changes? Minor format change * GitHub Issue: #44101 Authored-by: mwish <[email protected]> Signed-off-by: mwish <[email protected]>
- Loading branch information
Showing
4 changed files
with
64 additions
and
28 deletions.
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
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