Skip to content

Commit 43c6192

Browse files
committed
lint
1 parent 427d6d9 commit 43c6192

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

cpp/examples/arrow/simdjson_row_converter.cc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ class RowBatchBuilder {
239239

240240
// Default implementation
241241
arrow::Status Visit(const arrow::Array& array) {
242-
return arrow::Status::NotImplemented(
243-
"Cannot convert to JSON for array of type ", array.type()->ToString());
242+
return arrow::Status::NotImplemented("Cannot convert to JSON for array of type ",
243+
array.type()->ToString());
244244
}
245245

246246
arrow::Status Visit(const arrow::BooleanArray& array) {
@@ -416,9 +416,11 @@ class JsonValueConverter {
416416

417417
arrow::Result<std::shared_ptr<arrow::RecordBatch>> ConvertToRecordBatch(
418418
const std::vector<Row>& rows, const std::shared_ptr<arrow::Schema>& schema) {
419-
auto batch_builder = arrow::RecordBatchBuilder::Make(schema, arrow::default_memory_pool());
419+
auto batch_builder =
420+
arrow::RecordBatchBuilder::Make(schema, arrow::default_memory_pool());
420421
ARROW_RETURN_NOT_OK(batch_builder.status());
421-
std::unique_ptr<arrow::RecordBatchBuilder> builder = std::move(batch_builder).ValueOrDie();
422+
std::unique_ptr<arrow::RecordBatchBuilder> builder =
423+
std::move(batch_builder).ValueOrDie();
422424

423425
for (int i = 0; i < schema->num_fields(); ++i) {
424426
const arrow::Field* field = schema->field(i).get();

cpp/src/arrow/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,8 +990,7 @@ if(ARROW_JSON)
990990
if(SIMDJSON_TARGET_TYPE STREQUAL "INTERFACE_LIBRARY")
991991
set(ARROW_SIMDJSON_IMPL_SRC json/simdjson_impl.cc)
992992
set_source_files_properties(json/simdjson_impl.cc
993-
PROPERTIES COMPILE_DEFINITIONS
994-
SIMDJSON_IMPLEMENTATION)
993+
PROPERTIES COMPILE_DEFINITIONS SIMDJSON_IMPLEMENTATION)
995994
endif()
996995
endif()
997996
arrow_add_object_library(ARROW_JSON

cpp/src/arrow/json/chunker_test.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,7 @@ TEST(ChunkerTest, Errors) {
270270
auto status =
271271
chunker->ProcessWithPartial(rest, Buffer::FromString(parts[2]), &completion, &rest);
272272
ASSERT_RAISES(Invalid, status);
273-
EXPECT_THAT(status.message(),
274-
::testing::StartsWith("JSON parse error: Invalid value"));
273+
EXPECT_THAT(status.message(), ::testing::StartsWith("JSON parse error: Invalid value"));
275274
}
276275

277276
TEST_P(BaseChunkerTest, StraddlingEmpty) {

0 commit comments

Comments
 (0)