From dcf141cf3c20a50e2b56cda1ff6caa5f5682b506 Mon Sep 17 00:00:00 2001 From: Carlo Piovesan Date: Mon, 11 Nov 2024 15:37:46 +0100 Subject: [PATCH] autoload('parquet') since it's needed for scan_parquet --- src/functions/delta_scan.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/functions/delta_scan.cpp b/src/functions/delta_scan.cpp index 3bf4105..b698e5f 100644 --- a/src/functions/delta_scan.cpp +++ b/src/functions/delta_scan.cpp @@ -937,9 +937,11 @@ bool DeltaMultiFileReader::ParseOption(const string &key, const Value &val, Mult //} TableFunctionSet DeltaFunctions::GetDeltaScanFunction(DatabaseInstance &instance) { + // Parquet extension needs to be loaded for this to make sense + AutoLoadExtension(instance, "parquet"); + // The delta_scan function is constructed by grabbing the parquet scan from the Catalog, then injecting the // DeltaMultiFileReader into it to create a Delta-based multi file read - auto &parquet_scan = ExtensionUtil::GetTableFunction(instance, "parquet_scan"); auto parquet_scan_copy = parquet_scan.functions;