From 2c639153aa21b3e1ca781a01f1d77a5098afe76b Mon Sep 17 00:00:00 2001 From: Dan Lynn Date: Mon, 17 Feb 2025 14:50:50 -0700 Subject: [PATCH] Replace internal table secret on conflict. --- src/storage/irc_table_entry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/storage/irc_table_entry.cpp b/src/storage/irc_table_entry.cpp index 203efef..7aac12c 100644 --- a/src/storage/irc_table_entry.cpp +++ b/src/storage/irc_table_entry.cpp @@ -56,13 +56,14 @@ TableFunction ICTableEntry::GetScanFunction(ClientContext &context, unique_ptrschema_name, table_data->name, ic_catalog.credentials); // First check if table credentials are set (possible the IC catalog does not return credentials) if (!table_credentials.key_id.empty()) { // Inject secret into secret manager scoped to this path - CreateSecretInfo info(OnCreateConflict::ERROR_ON_CONFLICT, SecretPersistType::TEMPORARY); + CreateSecretInfo info(OnCreateConflict::REPLACE_ON_CONFLICT, SecretPersistType::TEMPORARY); info.name = "__internal_ic_" + table_data->table_id; info.type = "s3"; info.provider = "config";