@@ -366,16 +366,6 @@ class BlobTableInteTest : public testing::Test, public ::testing::WithParamInter
366366 return PathUtil::JoinPath (rewrite.table_path , relative_blob_path);
367367 }
368368 }
369-
370- std::string file_name = PathUtil::GetName (descriptor_uri);
371- for (const auto & blob_dir : rewrite.table_relative_blob_dirs ) {
372- std::string candidate =
373- PathUtil::JoinPath (PathUtil::JoinPath (rewrite.table_path , blob_dir), file_name);
374- auto exists = fs->Exists (candidate);
375- if (exists.ok () && exists.value ()) {
376- return candidate;
377- }
378- }
379369 return std::nullopt ;
380370 }
381371
@@ -2131,12 +2121,7 @@ TEST_P(BlobTableInteTest, TestBlobDescriptorFieldPartialExternalStorageNoAsDescr
21312121 auto read_concat = arrow::Concatenate (result.chunked_array ->chunks ()).ValueOrDie ();
21322122 auto read_struct = std::dynamic_pointer_cast<arrow::StructArray>(read_concat);
21332123
2134- // After read, b0 and b1 are both descriptor-stored; resolve all back to raw bytes.
2135- // Java-generated descriptors may contain absolute paths from the generation machine.
2136- // Rewrite them to the portable blob directories inside the copied table path.
2137- BlobDescriptorPathRewrite rewrite{table_path, {" raw_blob" , " external_blob" }};
2138- ASSERT_OK_AND_ASSIGN (auto resolved,
2139- ConvertDescriptorToRawBlob (read_struct, {" b0" , " b1" }, rewrite));
2124+ ASSERT_OK_AND_ASSIGN (auto resolved, ConvertDescriptorToRawBlob (read_struct, {" b0" , " b1" }));
21402125 ASSERT_OK_AND_ASSIGN (auto expected_with_rk, PrependRowKindColumn (raw_array));
21412126 ASSERT_TRUE (resolved->Equals (expected_with_rk));
21422127
0 commit comments