duckdb 0.5.2-dev436.0 → 0.5.2-dev439.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/duckdb.cpp +12 -0
- package/src/duckdb.hpp +10 -2
- package/src/parquet-amalgamation.cpp +37397 -37397
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -125967,6 +125967,7 @@ struct CAPIReplacementScanInfo {
|
|
|
125967
125967
|
CAPIReplacementScanData *data;
|
|
125968
125968
|
string function_name;
|
|
125969
125969
|
vector<Value> parameters;
|
|
125970
|
+
string error;
|
|
125970
125971
|
};
|
|
125971
125972
|
|
|
125972
125973
|
unique_ptr<TableFunctionRef> duckdb_capi_replacement_callback(ClientContext &context, const string &table_name,
|
|
@@ -125975,6 +125976,9 @@ unique_ptr<TableFunctionRef> duckdb_capi_replacement_callback(ClientContext &con
|
|
|
125975
125976
|
|
|
125976
125977
|
CAPIReplacementScanInfo info(&scan_data);
|
|
125977
125978
|
scan_data.callback((duckdb_replacement_scan_info)&info, table_name.c_str(), scan_data.extra_data);
|
|
125979
|
+
if (!info.error.empty()) {
|
|
125980
|
+
throw BinderException("Error in replacement scan: %s\n", info.error);
|
|
125981
|
+
}
|
|
125978
125982
|
if (info.function_name.empty()) {
|
|
125979
125983
|
// no function provided: bail-out
|
|
125980
125984
|
return nullptr;
|
|
@@ -126023,6 +126027,14 @@ void duckdb_replacement_scan_add_parameter(duckdb_replacement_scan_info info_p,
|
|
|
126023
126027
|
info->parameters.push_back(*val);
|
|
126024
126028
|
}
|
|
126025
126029
|
|
|
126030
|
+
void duckdb_replacement_scan_set_error(duckdb_replacement_scan_info info_p, const char *error) {
|
|
126031
|
+
if (!info_p || !error) {
|
|
126032
|
+
return;
|
|
126033
|
+
}
|
|
126034
|
+
auto info = (duckdb::CAPIReplacementScanInfo *)info_p;
|
|
126035
|
+
info->error = error;
|
|
126036
|
+
}
|
|
126037
|
+
|
|
126026
126038
|
|
|
126027
126039
|
|
|
126028
126040
|
|
package/src/duckdb.hpp
CHANGED
|
@@ -11,8 +11,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
11
11
|
#pragma once
|
|
12
12
|
#define DUCKDB_AMALGAMATION 1
|
|
13
13
|
#define DUCKDB_AMALGAMATION_EXTENDED 1
|
|
14
|
-
#define DUCKDB_SOURCE_ID "
|
|
15
|
-
#define DUCKDB_VERSION "v0.5.2-
|
|
14
|
+
#define DUCKDB_SOURCE_ID "038b09da6"
|
|
15
|
+
#define DUCKDB_VERSION "v0.5.2-dev439"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|
|
@@ -22629,6 +22629,14 @@ Adds a parameter to the replacement scan function.
|
|
|
22629
22629
|
*/
|
|
22630
22630
|
DUCKDB_API void duckdb_replacement_scan_add_parameter(duckdb_replacement_scan_info info, duckdb_value parameter);
|
|
22631
22631
|
|
|
22632
|
+
/*!
|
|
22633
|
+
Report that an error has occurred while executing the replacement scan.
|
|
22634
|
+
|
|
22635
|
+
* info: The info object
|
|
22636
|
+
* error: The error message
|
|
22637
|
+
*/
|
|
22638
|
+
DUCKDB_API void duckdb_replacement_scan_set_error(duckdb_replacement_scan_info info, const char *error);
|
|
22639
|
+
|
|
22632
22640
|
//===--------------------------------------------------------------------===//
|
|
22633
22641
|
// Appender
|
|
22634
22642
|
//===--------------------------------------------------------------------===//
|