duckdb 0.6.2-dev13.0 → 0.6.2-dev9.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 +0 -29
- package/src/duckdb.hpp +2 -10
- package/src/parquet-amalgamation.cpp +27418 -27418
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -652,7 +652,6 @@ static constexpr ExtensionFunction EXTENSION_FUNCTIONS[] = {
|
|
|
652
652
|
{"from_substrait", "substrait"},
|
|
653
653
|
{"get_substrait", "substrait"},
|
|
654
654
|
{"get_substrait_json", "substrait"},
|
|
655
|
-
{"from_substrait_json", "substrait"},
|
|
656
655
|
{"icu_calendar_names", "icu"},
|
|
657
656
|
{"icu_sort_key", "icu"},
|
|
658
657
|
{"json", "json"},
|
|
@@ -138191,34 +138190,6 @@ unique_ptr<MaterializedQueryResult> Connection::Query(const string &query) {
|
|
|
138191
138190
|
return unique_ptr_cast<QueryResult, MaterializedQueryResult>(move(result));
|
|
138192
138191
|
}
|
|
138193
138192
|
|
|
138194
|
-
DUCKDB_API string Connection::GetSubstrait(const string &query) {
|
|
138195
|
-
vector<Value> params;
|
|
138196
|
-
params.emplace_back(query);
|
|
138197
|
-
auto result = TableFunction("get_substrait", params)->Execute();
|
|
138198
|
-
auto protobuf = result->FetchRaw()->GetValue(0, 0);
|
|
138199
|
-
return protobuf.GetValueUnsafe<string_t>().GetString();
|
|
138200
|
-
}
|
|
138201
|
-
|
|
138202
|
-
DUCKDB_API unique_ptr<QueryResult> Connection::FromSubstrait(const string &proto) {
|
|
138203
|
-
vector<Value> params;
|
|
138204
|
-
params.emplace_back(Value::BLOB_RAW(proto));
|
|
138205
|
-
return TableFunction("from_substrait", params)->Execute();
|
|
138206
|
-
}
|
|
138207
|
-
|
|
138208
|
-
DUCKDB_API string Connection::GetSubstraitJSON(const string &query) {
|
|
138209
|
-
vector<Value> params;
|
|
138210
|
-
params.emplace_back(query);
|
|
138211
|
-
auto result = TableFunction("get_substrait_json", params)->Execute();
|
|
138212
|
-
auto protobuf = result->FetchRaw()->GetValue(0, 0);
|
|
138213
|
-
return protobuf.GetValueUnsafe<string_t>().GetString();
|
|
138214
|
-
}
|
|
138215
|
-
|
|
138216
|
-
DUCKDB_API unique_ptr<QueryResult> Connection::FromSubstraitJSON(const string &json) {
|
|
138217
|
-
vector<Value> params;
|
|
138218
|
-
params.emplace_back(json);
|
|
138219
|
-
return TableFunction("from_substrait_json", params)->Execute();
|
|
138220
|
-
}
|
|
138221
|
-
|
|
138222
138193
|
unique_ptr<MaterializedQueryResult> Connection::Query(unique_ptr<SQLStatement> statement) {
|
|
138223
138194
|
auto result = context->Query(move(statement), false);
|
|
138224
138195
|
D_ASSERT(result->type == QueryResultType::MATERIALIZED_RESULT);
|
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.6.2-
|
|
14
|
+
#define DUCKDB_SOURCE_ID "6bed24bd49"
|
|
15
|
+
#define DUCKDB_VERSION "v0.6.2-dev9"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|
|
@@ -16647,14 +16647,6 @@ public:
|
|
|
16647
16647
|
DUCKDB_API shared_ptr<Relation> RelationFromQuery(unique_ptr<SelectStatement> select_stmt,
|
|
16648
16648
|
const string &alias = "queryrelation");
|
|
16649
16649
|
|
|
16650
|
-
//! Returns a substrait BLOB from a valid query
|
|
16651
|
-
DUCKDB_API string GetSubstrait(const string &query);
|
|
16652
|
-
//! Returns a Query Result from a substrait blob
|
|
16653
|
-
DUCKDB_API unique_ptr<QueryResult> FromSubstrait(const string &proto);
|
|
16654
|
-
//! Returns a substrait BLOB from a valid query
|
|
16655
|
-
DUCKDB_API string GetSubstraitJSON(const string &query);
|
|
16656
|
-
//! Returns a Query Result from a substrait JSON
|
|
16657
|
-
DUCKDB_API unique_ptr<QueryResult> FromSubstraitJSON(const string &json);
|
|
16658
16650
|
DUCKDB_API void BeginTransaction();
|
|
16659
16651
|
DUCKDB_API void Commit();
|
|
16660
16652
|
DUCKDB_API void Rollback();
|