@@ -533,7 +533,7 @@ String GlueCatalog::resolveMetadataPathFromTableLocation(const String & table_lo
533533 auto storage_settings = std::make_shared<DB::DataLakeStorageSettings>();
534534 storage_settings->loadFromSettingsChanges (settings.allChanged ());
535535 auto configuration = std::make_shared<DB::StorageS3IcebergConfiguration>(storage_settings);
536- DB::StorageObjectStorageConfiguration:: initialize (*configuration, args, getContext (), false );
536+ configuration-> initialize (args, getContext (), false );
537537
538538 auto object_storage = configuration->createObjectStorage (getContext (), true );
539539 const auto & read_settings = getContext ()->getReadSettings ();
@@ -556,17 +556,14 @@ String GlueCatalog::resolveMetadataPathFromTableLocation(const String & table_lo
556556 String version_str;
557557 readString (version_str, *version_hint_buf);
558558
559- // Trim whitespace
560559 boost::algorithm::trim (version_str);
561560
562561 LOG_TRACE (log, " Read version {} from version-hint.text for table location '{}'" , version_str, table_location);
563562
564- // Construct metadata file path: table_location/metadata/v{version}-metadata.json
565563 return table_location + " metadata/v" + version_str + " -metadata.json" ;
566564 }
567565 catch (...)
568566 {
569- // If version-hint.text doesn't exist or is unreadable, list all metadata files and select the latest
570567 LOG_TRACE (log, " Could not read version-hint.text from '{}', trying to find latest metadata file" , version_hint_path);
571568
572569 try
@@ -617,7 +614,7 @@ String GlueCatalog::resolveMetadataPathFromTableLocation(const String & table_lo
617614 return bucket_with_prefix + latest_metadata_file;
618615 }
619616
620- LOG_TRACE (log, " No .metadata.json files found," );
617+ LOG_TRACE (log, " No <...> .metadata.json files found," );
621618 return " " ;
622619 }
623620 catch (...)
0 commit comments