@@ -265,8 +265,9 @@ class TestParquetIO : public ::testing::Test {
265265// There we write an UInt32 Array but receive an Int64 Array as result for
266266// Parquet version 1.0.
267267
268- typedef ::testing::Types<::arrow::BooleanType, ::arrow::UInt8Type, ::arrow::Int8Type, ::arrow::UInt16Type, ::arrow::Int16Type,
269- ::arrow::Int32Type, ::arrow::UInt64Type, ::arrow::Int64Type, ::arrow::TimestampType, ::arrow::FloatType, ::arrow::DoubleType,
268+ typedef ::testing::Types<::arrow::BooleanType, ::arrow::UInt8Type, ::arrow::Int8Type,
269+ ::arrow::UInt16Type, ::arrow::Int16Type, ::arrow::Int32Type, ::arrow::UInt64Type,
270+ ::arrow::Int64Type, ::arrow::TimestampType, ::arrow::FloatType, ::arrow::DoubleType,
270271 ::arrow::StringType> TestTypes;
271272
272273TYPED_TEST_CASE (TestParquetIO, TestTypes);
@@ -284,8 +285,8 @@ TYPED_TEST(TestParquetIO, SingleColumnTableRequiredWrite) {
284285 auto values = NonNullArray<TypeParam>(SMALL_SIZE);
285286 std::shared_ptr<Table> table = MakeSimpleTable (values, false );
286287 this ->sink_ = std::make_shared<InMemoryOutputStream>();
287- ASSERT_OK_NO_THROW (WriteFlatTable (table.get (), ::arrow::default_memory_pool (), this -> sink_ ,
288- values->length (), default_writer_properties ()));
288+ ASSERT_OK_NO_THROW (WriteFlatTable (table.get (), ::arrow::default_memory_pool (),
289+ this -> sink_ , values->length (), default_writer_properties ()));
289290
290291 std::shared_ptr<Table> out;
291292 this ->ReadTableFromFile (this ->ReaderFromSink (), &out);
@@ -312,8 +313,8 @@ TYPED_TEST(TestParquetIO, SingleColumnTableOptionalReadWrite) {
312313 std::shared_ptr<Array> values = NullableArray<TypeParam>(SMALL_SIZE, 10 );
313314 std::shared_ptr<Table> table = MakeSimpleTable (values, true );
314315 this ->sink_ = std::make_shared<InMemoryOutputStream>();
315- ASSERT_OK_NO_THROW (WriteFlatTable (table.get (), ::arrow::default_memory_pool (), this -> sink_ ,
316- values->length (), default_writer_properties ()));
316+ ASSERT_OK_NO_THROW (WriteFlatTable (table.get (), ::arrow::default_memory_pool (),
317+ this -> sink_ , values->length (), default_writer_properties ()));
317318
318319 this ->ReadAndCheckSingleColumnTable (values);
319320}
@@ -365,8 +366,8 @@ TYPED_TEST(TestParquetIO, SingleColumnTableOptionalChunkedWrite) {
365366 auto values = NullableArray<TypeParam>(LARGE_SIZE, 100 );
366367 std::shared_ptr<Table> table = MakeSimpleTable (values, true );
367368 this ->sink_ = std::make_shared<InMemoryOutputStream>();
368- ASSERT_OK_NO_THROW (WriteFlatTable (
369- table. get (), :: arrow::default_memory_pool (), this ->sink_ , 512 , default_writer_properties ()));
369+ ASSERT_OK_NO_THROW (WriteFlatTable (table. get (), :: arrow::default_memory_pool (),
370+ this ->sink_ , 512 , default_writer_properties ()));
370371
371372 this ->ReadAndCheckSingleColumnTable (values);
372373}
@@ -375,7 +376,8 @@ using TestUInt32ParquetIO = TestParquetIO<::arrow::UInt32Type>;
375376
376377TEST_F (TestUInt32ParquetIO, Parquet_2_0_Compability) {
377378 // This also tests max_definition_level = 1
378- std::shared_ptr<PrimitiveArray> values = NullableArray<::arrow::UInt32Type>(LARGE_SIZE, 100 );
379+ std::shared_ptr<PrimitiveArray> values =
380+ NullableArray<::arrow::UInt32Type>(LARGE_SIZE, 100 );
379381 std::shared_ptr<Table> table = MakeSimpleTable (values, true );
380382
381383 // Parquet 2.0 roundtrip should yield an uint32_t column again
@@ -391,7 +393,8 @@ TEST_F(TestUInt32ParquetIO, Parquet_2_0_Compability) {
391393
392394TEST_F (TestUInt32ParquetIO, Parquet_1_0_Compability) {
393395 // This also tests max_definition_level = 1
394- std::shared_ptr<PrimitiveArray> values = NullableArray<::arrow::UInt32Type>(LARGE_SIZE, 100 );
396+ std::shared_ptr<PrimitiveArray> values =
397+ NullableArray<::arrow::UInt32Type>(LARGE_SIZE, 100 );
395398 std::shared_ptr<Table> table = MakeSimpleTable (values, true );
396399
397400 // Parquet 1.0 returns an int64_t column as there is no way to tell a Parquet 1.0
@@ -401,8 +404,8 @@ TEST_F(TestUInt32ParquetIO, Parquet_1_0_Compability) {
401404 ::parquet::WriterProperties::Builder ()
402405 .version(ParquetVersion::PARQUET_1_0)
403406 ->build();
404- ASSERT_OK_NO_THROW (
405- WriteFlatTable ( table.get (), ::arrow::default_memory_pool (), this ->sink_ , 512 , properties));
407+ ASSERT_OK_NO_THROW (WriteFlatTable (
408+ table.get (), ::arrow::default_memory_pool (), this ->sink_ , 512 , properties));
406409
407410 std::shared_ptr<Array> expected_values;
408411 std::shared_ptr<PoolBuffer> int64_data =
@@ -481,8 +484,9 @@ class TestPrimitiveParquetIO : public TestParquetIO<TestType> {
481484 }
482485};
483486
484- typedef ::testing::Types<::arrow::BooleanType, ::arrow::UInt8Type, ::arrow::Int8Type, ::arrow::UInt16Type, ::arrow::Int16Type,
485- ::arrow::UInt32Type, ::arrow::Int32Type, ::arrow::UInt64Type, ::arrow::Int64Type, ::arrow::FloatType,
487+ typedef ::testing::Types<::arrow::BooleanType, ::arrow::UInt8Type, ::arrow::Int8Type,
488+ ::arrow::UInt16Type, ::arrow::Int16Type, ::arrow::UInt32Type, ::arrow::Int32Type,
489+ ::arrow::UInt64Type, ::arrow::Int64Type, ::arrow::FloatType,
486490 ::arrow::DoubleType> PrimitiveTestTypes;
487491
488492TYPED_TEST_CASE (TestPrimitiveParquetIO, PrimitiveTestTypes);
0 commit comments