Skip to content

Commit

Permalink
Change loading order
Browse files Browse the repository at this point in the history
Signed-off-by: Teague Sterling <[email protected]>
  • Loading branch information
teaguesterling committed Dec 22, 2024
1 parent 53ea574 commit ff7bb6e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/iceberg_extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
namespace duckdb {

static void LoadInternal(DatabaseInstance &instance) {
auto &config = DBConfig::GetConfig(instance);

config.AddExtensionOption(
"unsafe_enable_version_guessing",
"Enable globbing the filesystem (if possible) to find the latest version metadata. This could result in reading an uncommitted version.",
LogicalType::BOOLEAN,
Value::BOOLEAN(false)
);

// Iceberg Table Functions
for (auto &fun : IcebergFunctions::GetTableFunctions()) {
ExtensionUtil::RegisterFunction(instance, fun);
Expand All @@ -28,14 +37,6 @@ static void LoadInternal(DatabaseInstance &instance) {
}

void IcebergExtension::Load(DuckDB &db) {
auto &config = DBConfig::GetConfig(*db.instance);

config.AddExtensionOption(
"unsafe_enable_version_guessing",
"Enable globbing the filesystem (if possible) to find the latest version metadata. This could result in reading an uncommitted version.",
LogicalType::BOOLEAN,
Value::BOOLEAN(false)
);
LoadInternal(*db.instance);
}
std::string IcebergExtension::Name() {
Expand Down

0 comments on commit ff7bb6e

Please sign in to comment.