Fix extension load#19079
Merged
Merged
Conversation
dentiny
commented
Sep 22, 2025
| auto &manager = ExtensionManager::Get(*instance); | ||
| auto info = manager.BeginLoad(extension.Name()); | ||
| if (!info) { | ||
| auto load_info = manager.BeginLoad(extension.Name()); |
Member
Author
There was a problem hiding this comment.
we already have install_info here, rename for differentiation.
dentiny
commented
Sep 22, 2025
| : db(load_info.db), extension_name(load_info.extension_name), extension_info(load_info.info) { | ||
| } | ||
|
|
||
| ExtensionLoader::ExtensionLoader(DatabaseInstance &db, const string &name) : db(db), extension_name(name) { |
Member
Author
There was a problem hiding this comment.
load_info already contains db instance and extension name inside, so it's a redundant ctor
Member
|
LGTM, thanks! |
Maxxen
approved these changes
Sep 22, 2025
Member
Author
It seems duckdb official extensions also rely on the constructor interface, so I would like to
|
Collaborator
|
Thanks! |
krlmlr
added a commit
to krlmlr/duckdb-r
that referenced
this pull request
Oct 21, 2025
Merge v1.4 into main (duckdb/duckdb#19098) Change core extensions bucket name (duckdb/duckdb#19082) Fix extension load (duckdb/duckdb#19079) Revert "set default value of MAIN_BRANCH_VERSIONING to false" (duckdb/duckdb#19057) CI: Increase stale bot timeout to 1 year (duckdb/duckdb#19000) Switching core extension upload to dedicated credentials (duckdb/duckdb#19060)
krlmlr
added a commit
to krlmlr/duckdb-r
that referenced
this pull request
Nov 1, 2025
Merge v1.4 into main (duckdb/duckdb#19098) Change core extensions bucket name (duckdb/duckdb#19082) Fix extension load (duckdb/duckdb#19079) Revert "set default value of MAIN_BRANCH_VERSIONING to false" (duckdb/duckdb#19057) CI: Increase stale bot timeout to 1 year (duckdb/duckdb#19000) Switching core extension upload to dedicated credentials (duckdb/duckdb#19060)
krlmlr
added a commit
to krlmlr/duckdb-r
that referenced
this pull request
Nov 2, 2025
Merge v1.4 into main (duckdb/duckdb#19098) Change core extensions bucket name (duckdb/duckdb#19082) Fix extension load (duckdb/duckdb#19079) Revert "set default value of MAIN_BRANCH_VERSIONING to false" (duckdb/duckdb#19057) CI: Increase stale bot timeout to 1 year (duckdb/duckdb#19000) Switching core extension upload to dedicated credentials (duckdb/duckdb#19060)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When upgrading extensions to duckdb v1.4, I found extension cannot set description any more, the reason is
ExtensionLoaderinitialized for statically-linked community extension,ExtensionActiveLoadis not passed, thus no extension info.Reading through the code,
ExtensionActiveLoadalready contains everything we need, including db instance and extension name:duckdb/src/include/duckdb/main/extension_manager.hpp
Lines 27 to 39 in 46297ae
So in this PR, I removed the unnecessary ctor and fix its usage.
Before the fix, there's no way to set description, which is a regression from v1.3.
See #19073
After the fix
I use "helloworld" as my testing description, which correct displays.