Skip to content

Commit

Permalink
Merge pull request #12 from carlopi/bumpandpatch
Browse files Browse the repository at this point in the history
Bump DuckDB and make so aws (and httpfs) can be autoloaded
  • Loading branch information
Mytherin authored Sep 13, 2023
2 parents a1f6541 + 16bb575 commit 348ae26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion duckdb
Submodule duckdb updated 649 files
3 changes: 2 additions & 1 deletion src/aws_extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "aws_extension.hpp"
#include "duckdb.hpp"
#include "duckdb/common/exception.hpp"
#include "duckdb/catalog/catalog.hpp"
#include "duckdb/main/extension_util.hpp"
#include <duckdb/parser/parsed_data/create_scalar_function_info.hpp>
#include <aws/core/Aws.h>
Expand Down Expand Up @@ -104,7 +105,7 @@ static void LoadAWSCredentialsFun(ClientContext &context, TableFunctionInput &da
return;
}

if (!context.db->ExtensionIsLoaded("httpfs")) {
if (!Catalog::TryAutoLoad(context, "httpfs")) {
throw MissingExtensionException("httpfs extension is required for load_aws_credentials");
}

Expand Down
2 changes: 2 additions & 0 deletions test/sql/aws_errors.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# description: test aws extension
# group: [aws]

require no_extension_autoloading

# Before we load the extension, this will fail
statement error
CALL load_aws_credentials();
Expand Down

0 comments on commit 348ae26

Please sign in to comment.