From 46fefdf4defb6673ba45ad402405f109c147c306 Mon Sep 17 00:00:00 2001 From: DuckLabs GitHub Bot Date: Sat, 21 Nov 2026 03:18:19 +0000 Subject: [PATCH] Update vendored DuckDB sources to b3a028e6c89 --- .../generated_extension_loader_package_build.cpp | 8 ++++---- .../table/system/create_external_resource.cpp | 4 ++-- .../src/function/table/system/external_resources.cpp | 12 ++++++++++++ .../src/function/table/version/pragma_version.cpp | 6 +++--- 4 files changed, 21 insertions(+), 9 deletions(-) diff --git a/src/duckdb/generated_extension_loader_package_build.cpp b/src/duckdb/generated_extension_loader_package_build.cpp index 0e899674c..76be1ad42 100644 --- a/src/duckdb/generated_extension_loader_package_build.cpp +++ b/src/duckdb/generated_extension_loader_package_build.cpp @@ -45,7 +45,7 @@ int32_t duckdb_extension_core_functions_describe(duckdb_extension_descriptor *de descriptor->version = 1; descriptor->name = "core_functions"; descriptor->extension_version = EXT_VERSION_CORE_FUNCTIONS; - descriptor->api_version = "v2.0.1"; + descriptor->api_version = "v2.0.2-alpha56987"; descriptor->entry_cpp = (void (*)(void))core_functions_duckdb_cpp_init; return 0; } @@ -78,7 +78,7 @@ int32_t duckdb_extension_parquet_describe(duckdb_extension_descriptor *descripto descriptor->version = 1; descriptor->name = "parquet"; descriptor->extension_version = EXT_VERSION_PARQUET; - descriptor->api_version = "v2.0.1"; + descriptor->api_version = "v2.0.2-alpha56987"; descriptor->entry_cpp = (void (*)(void))parquet_duckdb_cpp_init; return 0; } @@ -111,7 +111,7 @@ int32_t duckdb_extension_icu_describe(duckdb_extension_descriptor *descriptor) { descriptor->version = 1; descriptor->name = "icu"; descriptor->extension_version = EXT_VERSION_ICU; - descriptor->api_version = "v2.0.1"; + descriptor->api_version = "v2.0.2-alpha56987"; descriptor->entry_cpp = (void (*)(void))icu_duckdb_cpp_init; return 0; } @@ -144,7 +144,7 @@ int32_t duckdb_extension_json_describe(duckdb_extension_descriptor *descriptor) descriptor->version = 1; descriptor->name = "json"; descriptor->extension_version = EXT_VERSION_JSON; - descriptor->api_version = "v2.0.1"; + descriptor->api_version = "v2.0.2-alpha56987"; descriptor->entry_cpp = (void (*)(void))json_duckdb_cpp_init; return 0; } diff --git a/src/duckdb/src/function/table/system/create_external_resource.cpp b/src/duckdb/src/function/table/system/create_external_resource.cpp index 11317348a..9d7f2fd36 100644 --- a/src/duckdb/src/function/table/system/create_external_resource.cpp +++ b/src/duckdb/src/function/table/system/create_external_resource.cpp @@ -176,8 +176,8 @@ static void CreateExternalResourceFunction(ClientContext &context, TableFunction auto extension = ExternalResourceTypeRegistry::ProvidingExtension(bind_data.type_name); if (!extension.empty()) { throw InvalidInputException("create_external_resource: unknown resource type \"%s\": it is provided by the " - "%s extension, which could not be autoloaded. Try: INSTALL %s; LOAD %s;", - bind_data.type_name, extension, extension, extension); + "%s extension, which could not be autoloaded. Try: INSTALL AND LOAD %s;", + bind_data.type_name, extension, extension); } throw InvalidInputException("create_external_resource: unknown resource type \"%s\"", bind_data.type_name); } diff --git a/src/duckdb/src/function/table/system/external_resources.cpp b/src/duckdb/src/function/table/system/external_resources.cpp index 2d0da7bb1..f93342d6c 100644 --- a/src/duckdb/src/function/table/system/external_resources.cpp +++ b/src/duckdb/src/function/table/system/external_resources.cpp @@ -3,6 +3,7 @@ #include "duckdb/common/exception.hpp" #include "duckdb/common/string_util.hpp" #include "duckdb/common/types/value.hpp" +#include "duckdb/main/database.hpp" #include "duckdb/main/external_resource_type_registry.hpp" #include "duckdb/main/external_resources_manager.hpp" #include "duckdb/parser/keyword_helper.hpp" @@ -81,6 +82,10 @@ static unique_ptr ExternalResourcesBindReplace(ClientContext &context, branches.push_back("SELECT name, type, managed, NULL::VARCHAR AS state, NULL::VARCHAR AS reference, uri, " "attached_db_type, handle FROM " + RegistryScan(params.type)); + if (!params.type.empty()) { + // An unknown type autoloads the extension known to provide it, like an unknown function does + ExternalResourceTypeRegistry::LookupOrAutoload(DatabaseInstance::GetDatabase(context), params.type); + } bool matched = false; for (auto &type : ExternalResourceTypeRegistry::Get(context).List()) { if (!MatchesType(params.type, type.name)) { @@ -112,6 +117,13 @@ static unique_ptr ExternalResourcesBindReplace(ClientContext &context, // opaque type) has nothing to discover, like a type without a list callback. A type neither knows is most // likely a typo, or a missing extension. if (!matched && !params.type.empty() && !RegistryHasType(context, params.type)) { + auto extension = ExternalResourceTypeRegistry::ProvidingExtension(params.type); + if (!extension.empty()) { + throw InvalidInputException( + "duckdb_external_resources: unknown resource type \"%s\": it is provided by the " + "%s extension, which could not be autoloaded. Try: INSTALL AND LOAD %s;", + params.type, extension, extension); + } throw InvalidInputException("duckdb_external_resources: unknown resource type \"%s\"", params.type); } Parser parser(context); diff --git a/src/duckdb/src/function/table/version/pragma_version.cpp b/src/duckdb/src/function/table/version/pragma_version.cpp index 9f36e686c..e7fbeb1e2 100644 --- a/src/duckdb/src/function/table/version/pragma_version.cpp +++ b/src/duckdb/src/function/table/version/pragma_version.cpp @@ -1,5 +1,5 @@ #ifndef DUCKDB_PATCH_VERSION -#define DUCKDB_PATCH_VERSION "1" +#define DUCKDB_PATCH_VERSION "2-alpha56987" #endif #ifndef DUCKDB_MINOR_VERSION #define DUCKDB_MINOR_VERSION 0 @@ -8,10 +8,10 @@ #define DUCKDB_MAJOR_VERSION 2 #endif #ifndef DUCKDB_VERSION -#define DUCKDB_VERSION "v2.0.1" +#define DUCKDB_VERSION "v2.0.2-alpha56987" #endif #ifndef DUCKDB_SOURCE_ID -#define DUCKDB_SOURCE_ID "8d78114e90" +#define DUCKDB_SOURCE_ID "b3a028e6c8" #endif #include "duckdb/function/table/system_functions.hpp" #include "duckdb/main/database.hpp"