Skip to content

Commit

Permalink
more indent
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed Nov 8, 2024
1 parent 4aaa382 commit 9a98505
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cpp/src/parquet/printer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ void ParquetFilePrinter::JSONPrint(std::ostream& stream, std::list<int> selected
if (!row_group_sorting_columns.empty()) {
stream << " \"SortColumns\": [\n";
for (size_t i = 0; i < row_group_sorting_columns.size(); i++) {
stream << " {\"column_idx\":" << row_group_sorting_columns[i].column_idx
<< ", \"descending\":" << row_group_sorting_columns[i].descending
stream << " {\"column_idx\": " << row_group_sorting_columns[i].column_idx
<< ", \"descending\": " << row_group_sorting_columns[i].descending
<< ", \"nulls_first\": " << row_group_sorting_columns[i].nulls_first
<< "}";
if (i + 1 != row_group_sorting_columns.size()) {
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/parquet/reader_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1184,8 +1184,8 @@ TEST_F(TestJSONWithLocalFile, JSONOutputSortColumns) {
std::string json_content = ReadFromLocalFile("sort_columns.parquet");

std::string json_contains = R"###("SortColumns": [
{"column_idx":0, "descending":1, "nulls_first": 1},
{"column_idx":1, "descending":0, "nulls_first": 0}
{"column_idx": 0, "descending": 1, "nulls_first": 1},
{"column_idx": 1, "descending": 0, "nulls_first": 0}
])###";
EXPECT_THAT(json_content, testing::HasSubstr(json_contains));
}
Expand Down

0 comments on commit 9a98505

Please sign in to comment.