Skip to content

Commit c131950

Browse files
committed
style: fix clang-format issues in columnar row files
1 parent 2775152 commit c131950

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/paimon/common/data/columnar/columnar_row_ref.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ std::shared_ptr<InternalRow> ColumnarRowRef::GetRow(int32_t pos, int32_t num_fie
5757
auto struct_array =
5858
arrow::internal::checked_pointer_cast<arrow::StructArray>(ctx_->array_vec_holder[pos]);
5959
assert(struct_array);
60-
auto nested_ctx = std::make_shared<ColumnarBatchContext>(
61-
struct_array, struct_array->fields(), ctx_->pool);
60+
auto nested_ctx =
61+
std::make_shared<ColumnarBatchContext>(struct_array, struct_array->fields(), ctx_->pool);
6262
return std::make_shared<ColumnarRowRef>(std::move(nested_ctx), row_id_);
6363
}
6464

src/paimon/common/data/columnar/columnar_row_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616

1717
#include "paimon/common/data/columnar/columnar_row.h"
18-
#include "paimon/common/data/columnar/columnar_row_ref.h"
1918

2019
#include <utility>
2120

@@ -25,6 +24,7 @@
2524
#include "arrow/array/array_nested.h"
2625
#include "arrow/ipc/json_simple.h"
2726
#include "gtest/gtest.h"
27+
#include "paimon/common/data/columnar/columnar_row_ref.h"
2828
#include "paimon/common/utils/date_time_utils.h"
2929
#include "paimon/memory/bytes.h"
3030
#include "paimon/memory/memory_pool.h"
@@ -77,9 +77,9 @@ TEST(ColumnarRowRefTest, TestSimple) {
7777
arrow::struct_({arrow::field("f1", arrow::int32()), arrow::field("f2", arrow::utf8())});
7878
auto f1 =
7979
arrow::ipc::internal::json::ArrayFromJSON(arrow::int32(), R"([1, 2, 3])").ValueOrDie();
80-
auto f2 = arrow::ipc::internal::json::ArrayFromJSON(arrow::utf8(),
81-
R"(["alpha", "beta", "gamma"])")
82-
.ValueOrDie();
80+
auto f2 =
81+
arrow::ipc::internal::json::ArrayFromJSON(arrow::utf8(), R"(["alpha", "beta", "gamma"])")
82+
.ValueOrDie();
8383
auto data = arrow::StructArray::Make({f1, f2}, target_type->fields()).ValueOrDie();
8484

8585
auto ctx = std::make_shared<ColumnarBatchContext>(data, data->fields(), pool);

0 commit comments

Comments
 (0)