@@ -161,9 +161,10 @@ class MergeFileSplitReadTest : public ::testing::Test,
161161 /* key_stats=*/
162162 BinaryRowGenerator::GenerateStats ({100 , 200 }, {100 , 200 }, {0 , 0 }, pool_.get ()),
163163 /* value_stats=*/
164- BinaryRowGenerator::GenerateStats ({100 , 200 , 0 , 0 , " max" , " number" , 140.4 , false },
165- {100 , 200 , 0 , 0 , " max" , " number" , 140.4 , false },
166- {0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }, pool_.get ()),
164+ BinaryRowGenerator::GenerateStats (
165+ {100 , 200 , 0 , 0 , std::string (" max" ), std::string (" number" ), 140.4 , false },
166+ {100 , 200 , 0 , 0 , std::string (" max" ), std::string (" number" ), 140.4 , false },
167+ {0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }, pool_.get ()),
167168 /* min_sequence_number=*/ 8 , /* max_sequence_number=*/ 8 , /* schema_id=*/ 0 ,
168169 /* level=*/ 0 , /* extra_files=*/ std::vector<std::optional<std::string>>(),
169170 /* creation_time=*/ Timestamp (1735230606999ll , 0 ),
@@ -284,9 +285,9 @@ class MergeFileSplitReadTest : public ::testing::Test,
284285 /* max_key=*/ BinaryRowGenerator::GenerateRow ({1 , 1 }, pool_.get ()),
285286 /* key_stats=*/ BinaryRowGenerator::GenerateStats ({0 , 0 }, {1 , 1 }, {0 , 0 }, pool_.get ()),
286287 /* value_stats=*/
287- BinaryRowGenerator::GenerateStats ({0 , 0 , 2.0 , false , " apple" },
288- {1 , 1 , 2.0 , true , " banana" }, { 0 , 0 , 2 , 0 , 1 },
289- pool_.get ()),
288+ BinaryRowGenerator::GenerateStats ({0 , 0 , 2.0 , false , std::string ( " apple" ) },
289+ {1 , 1 , 2.0 , true , std::string ( " banana" ) },
290+ { 0 , 0 , 2 , 0 , 1 }, pool_.get ()),
290291 /* min_sequence_number=*/ 0 , /* max_sequence_number=*/ 2 , /* schema_id=*/ 0 ,
291292 /* level=*/ 0 , /* extra_files=*/ std::vector<std::optional<std::string>>(),
292293 /* creation_time=*/ Timestamp (1736793059256ll , 0 ),
@@ -302,9 +303,9 @@ class MergeFileSplitReadTest : public ::testing::Test,
302303 /* max_key=*/ BinaryRowGenerator::GenerateRow ({2 , 2 }, pool_.get ()),
303304 /* key_stats=*/ BinaryRowGenerator::GenerateStats ({0 , 0 }, {2 , 2 }, {0 , 0 }, pool_.get ()),
304305 /* value_stats=*/
305- BinaryRowGenerator::GenerateStats ({0 , 0 , 100.0 , false , " new_apple" },
306- {2 , 2 , 144.4 , true , " orange" }, { 0 , 0 , 0 , 0 , 3 },
307- pool_.get ()),
306+ BinaryRowGenerator::GenerateStats ({0 , 0 , 100.0 , false , std::string ( " new_apple" ) },
307+ {2 , 2 , 144.4 , true , std::string ( " orange" ) },
308+ { 0 , 0 , 0 , 0 , 3 }, pool_.get ()),
308309 /* min_sequence_number=*/ 3 , /* max_sequence_number=*/ 7 , /* schema_id=*/ 0 ,
309310 /* level=*/ 0 , /* extra_files=*/ std::vector<std::optional<std::string>>(),
310311 /* creation_time=*/ Timestamp (1736793059526ll , 0 ),
@@ -1173,13 +1174,15 @@ TEST_P(MergeFileSplitReadTest, Test09VersionWithoutInlineFieldId) {
11731174 ASSERT_OK_AND_ASSIGN (std::shared_ptr<ReadContext> read_context, context_builder.Finish ());
11741175 auto meta1 = std::make_shared<DataFileMeta>(
11751176 " data-00e3ed53-16ba-4537-9264-b7dc03fefc65-0.orc" , /* file_size=*/ 803 , /* row_count=*/ 1 ,
1176- /* min_key=*/ BinaryRowGenerator::GenerateRow ({" Tony" , 0 }, pool_.get ()),
1177- /* max_key=*/ BinaryRowGenerator::GenerateRow ({" Tony" , 0 }, pool_.get ()),
1177+ /* min_key=*/ BinaryRowGenerator::GenerateRow ({std::string ( " Tony" ) , 0 }, pool_.get ()),
1178+ /* max_key=*/ BinaryRowGenerator::GenerateRow ({std::string ( " Tony" ) , 0 }, pool_.get ()),
11781179 /* key_stats=*/
1179- BinaryRowGenerator::GenerateStats ({" Tony" , 0 }, {" Tony" , 0 }, {0 , 0 }, pool_.get ()),
1180+ BinaryRowGenerator::GenerateStats ({std::string (" Tony" ), 0 }, {std::string (" Tony" ), 0 },
1181+ {0 , 0 }, pool_.get ()),
11801182 /* value_stats=*/
1181- BinaryRowGenerator::GenerateStats ({" Tony" , 10 , 0 , 14.1 }, {" Tony" , 10 , 0 , 14.1 },
1182- {0 , 0 , 0 , 0 }, pool_.get ()),
1183+ BinaryRowGenerator::GenerateStats ({std::string (" Tony" ), 10 , 0 , 14.1 },
1184+ {std::string (" Tony" ), 10 , 0 , 14.1 }, {0 , 0 , 0 , 0 },
1185+ pool_.get ()),
11831186 /* min_sequence_number=*/ 5 , /* max_sequence_number=*/ 5 , /* schema_id=*/ 0 ,
11841187 /* level=*/ 0 , /* extra_files=*/ std::vector<std::optional<std::string>>(),
11851188 /* creation_time=*/ Timestamp (0ll , 0 ),
@@ -1189,13 +1192,15 @@ TEST_P(MergeFileSplitReadTest, Test09VersionWithoutInlineFieldId) {
11891192 /* write_cols=*/ std::nullopt );
11901193 auto meta2 = std::make_shared<DataFileMeta>(
11911194 " data-6871b960-edd9-40fc-9859-aaca9ea205cf-0.orc" , /* file_size=*/ 887 , /* row_count=*/ 5 ,
1192- /* min_key=*/ BinaryRowGenerator::GenerateRow ({" Alex" , 0 }, pool_.get ()),
1193- /* max_key=*/ BinaryRowGenerator::GenerateRow ({" Tony" , 0 }, pool_.get ()),
1195+ /* min_key=*/ BinaryRowGenerator::GenerateRow ({std::string ( " Alex" ) , 0 }, pool_.get ()),
1196+ /* max_key=*/ BinaryRowGenerator::GenerateRow ({std::string ( " Tony" ) , 0 }, pool_.get ()),
11941197 /* key_stats=*/
1195- BinaryRowGenerator::GenerateStats ({" Alex" , 0 }, {" Tony" , 0 }, {0 , 0 }, pool_.get ()),
1198+ BinaryRowGenerator::GenerateStats ({std::string (" Alex" ), 0 }, {std::string (" Tony" ), 0 },
1199+ {0 , 0 }, pool_.get ()),
11961200 /* value_stats=*/
1197- BinaryRowGenerator::GenerateStats ({" Alex" , 10 , 0 , 12.1 }, {" Tony" , 10 , 0 , 17.1 },
1198- {0 , 0 , 0 , 0 }, pool_.get ()),
1201+ BinaryRowGenerator::GenerateStats ({std::string (" Alex" ), 10 , 0 , 12.1 },
1202+ {std::string (" Tony" ), 10 , 0 , 17.1 }, {0 , 0 , 0 , 0 },
1203+ pool_.get ()),
11991204 /* min_sequence_number=*/ 0 , /* max_sequence_number=*/ 4 , /* schema_id=*/ 0 ,
12001205 /* level=*/ 0 , /* extra_files=*/ std::vector<std::optional<std::string>>(),
12011206 /* creation_time=*/ Timestamp (0ll , 0 ),
0 commit comments