diff --git a/src/storage/uc_table_entry.cpp b/src/storage/uc_table_entry.cpp index 70608a0..744e697 100644 --- a/src/storage/uc_table_entry.cpp +++ b/src/storage/uc_table_entry.cpp @@ -37,7 +37,6 @@ TableFunction UCTableEntry::GetScanFunction(ClientContext &context, unique_ptr(); - auto &secret_manager = SecretManager::Get(context); D_ASSERT(table_data); @@ -48,6 +47,8 @@ TableFunction UCTableEntry::GetScanFunction(ClientContext &context, unique_ptr inputs = {table_data->storage_location}; + if (table_data->storage_location.find("file://") != 0) { + auto &secret_manager = SecretManager::Get(context); // Get Credentials from UCAPI auto table_credentials = UCAPI::GetTableCredentials(table_data->table_id, uc_catalog.credentials); @@ -64,7 +65,7 @@ TableFunction UCTableEntry::GetScanFunction(ClientContext &context, unique_ptrstorage_location}; secret_manager.CreateSecret(context, info); - + } named_parameter_map_t param_map; vector return_types; vector names;