@@ -412,24 +412,23 @@ TEST_F(SharedShreddingFileReaderTest, TestListValue) {
412412 meta.max_row_width = 3 ;
413413
414414 std::map<std::string, int32_t > field_to_num_columns = {{" tags" , 2 }};
415- ASSERT_OK_AND_ASSIGN (auto physical_schema,
416- MapSharedShreddingUtils::LogicalToPhysicalSchema (
417- logical_schema, field_to_num_columns));
415+ ASSERT_OK_AND_ASSIGN (auto physical_schema, MapSharedShreddingUtils::LogicalToPhysicalSchema (
416+ logical_schema, field_to_num_columns));
418417 auto metadata = std::make_shared<arrow::KeyValueMetadata>();
419418 ASSERT_OK (MapSharedShreddingUtils::SerializeMetadata (
420419 meta, MapSharedShreddingDefine::kDefaultDictCompression , metadata.get ()));
421420 arrow::FieldVector physical_fields = physical_schema->fields ();
422421 physical_fields[1 ] = physical_fields[1 ]->WithMetadata (metadata);
423422 physical_schema = arrow::schema (std::move (physical_fields));
424423
425- auto physical_array = arrow::ipc::internal::json::ArrayFromJSON (
426- arrow::struct_ (physical_schema->fields ()), R"( [
424+ auto physical_array =
425+ arrow::ipc::internal::json::ArrayFromJSON ( arrow::struct_ (physical_schema->fields ()), R"( [
427426 [1, [[0, 1], [1, null, 2], [3], null]],
428427 [2, [[2, 0], [5, 6], [7], null]],
429428 [3, null],
430429 [4, [[1, 0], [8], [9, 10], [[2, [null]]]]]
431430 ])" )
432- .ValueOrDie ();
431+ .ValueOrDie ();
433432 auto reader = CreateReader (physical_array, physical_schema);
434433
435434 auto read_metadata = std::make_shared<arrow::KeyValueMetadata>();
@@ -489,12 +488,10 @@ TEST_F(SharedShreddingFileReaderTest, TestOrcDictionaryEncodedStringValue) {
489488
490489 std::string data_file_path =
491490 path_factory->ToPath (inc.GetNewFilesIncrement ().NewFiles ()[0 ]->file_name );
492- std::map<std::string, std::string> reader_options = {
493- {" orc.read.enable-lazy-decoding" , " true" }};
494- ASSERT_OK_AND_ASSIGN (
495- auto reader,
496- SharedShreddingFileReader::Create (
497- OpenFormatReader (data_file_path, format, reader_options), pool_));
491+ std::map<std::string, std::string> reader_options = {{" orc.read.enable-lazy-decoding" , " true" }};
492+ ASSERT_OK_AND_ASSIGN (auto reader,
493+ SharedShreddingFileReader::Create (
494+ OpenFormatReader (data_file_path, format, reader_options), pool_));
498495
499496 auto read_metadata = std::make_shared<arrow::KeyValueMetadata>();
500497 read_metadata->Append (" paimon.map.selected-keys" , " a,c" );
@@ -548,9 +545,8 @@ TEST_F(SharedShreddingFileReaderTest, TestReadsRealFormatFile) {
548545
549546 std::string data_file_path =
550547 path_factory->ToPath (inc.GetNewFilesIncrement ().NewFiles ()[0 ]->file_name );
551- ASSERT_OK_AND_ASSIGN (auto reader,
552- SharedShreddingFileReader::Create (
553- OpenFormatReader (data_file_path, format), pool_));
548+ ASSERT_OK_AND_ASSIGN (auto reader, SharedShreddingFileReader::Create (
549+ OpenFormatReader (data_file_path, format), pool_));
554550
555551 auto read_schema = ExportSchema (ReadSchema (" a,c" ));
556552 ASSERT_OK (reader->SetReadSchema (read_schema.get (), /* predicate=*/ nullptr ,
0 commit comments