From cd29003fa6561cd3e7fdbc8ae6feb9bac247d70e Mon Sep 17 00:00:00 2001 From: Nick Lanham Date: Thu, 6 Jun 2024 16:54:21 -0700 Subject: [PATCH] Don't get creds for local files --- src/storage/uc_table_entry.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;