duckdb 0.3.3-dev349.0 → 0.3.3-dev375.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 -5
- package/src/duckdb.hpp +2 -2
- package/src/parquet-amalgamation.cpp +36496 -36496
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -4206,7 +4206,9 @@ static DefaultMacro internal_macros[] = {
|
|
|
4206
4206
|
{DEFAULT_SCHEMA, "fmod", {"x", "y", nullptr}, "(x-y*floor(x/y))"},
|
|
4207
4207
|
{nullptr, nullptr, {nullptr}, nullptr}};
|
|
4208
4208
|
|
|
4209
|
-
static unique_ptr<CreateFunctionInfo> GetDefaultFunction(const string &
|
|
4209
|
+
static unique_ptr<CreateFunctionInfo> GetDefaultFunction(const string &input_schema, const string &input_name) {
|
|
4210
|
+
auto schema = StringUtil::Lower(input_schema);
|
|
4211
|
+
auto name = StringUtil::Lower(input_name);
|
|
4210
4212
|
for (idx_t index = 0; internal_macros[index].name != nullptr; index++) {
|
|
4211
4213
|
if (internal_macros[index].schema == schema && internal_macros[index].name == name) {
|
|
4212
4214
|
// parse the expression
|
|
@@ -4258,6 +4260,7 @@ vector<string> DefaultFunctionGenerator::GetDefaultEntries() {
|
|
|
4258
4260
|
|
|
4259
4261
|
|
|
4260
4262
|
|
|
4263
|
+
|
|
4261
4264
|
namespace duckdb {
|
|
4262
4265
|
|
|
4263
4266
|
struct DefaultSchema {
|
|
@@ -4266,7 +4269,8 @@ struct DefaultSchema {
|
|
|
4266
4269
|
|
|
4267
4270
|
static DefaultSchema internal_schemas[] = {{"information_schema"}, {"pg_catalog"}, {nullptr}};
|
|
4268
4271
|
|
|
4269
|
-
static bool GetDefaultSchema(const string &
|
|
4272
|
+
static bool GetDefaultSchema(const string &input_schema) {
|
|
4273
|
+
auto schema = StringUtil::Lower(input_schema);
|
|
4270
4274
|
for (idx_t index = 0; internal_schemas[index].name != nullptr; index++) {
|
|
4271
4275
|
if (internal_schemas[index].name == schema) {
|
|
4272
4276
|
return true;
|
|
@@ -4280,7 +4284,7 @@ DefaultSchemaGenerator::DefaultSchemaGenerator(Catalog &catalog) : DefaultGenera
|
|
|
4280
4284
|
|
|
4281
4285
|
unique_ptr<CatalogEntry> DefaultSchemaGenerator::CreateDefaultEntry(ClientContext &context, const string &entry_name) {
|
|
4282
4286
|
if (GetDefaultSchema(entry_name)) {
|
|
4283
|
-
return make_unique_base<CatalogEntry, SchemaCatalogEntry>(&catalog, entry_name, true);
|
|
4287
|
+
return make_unique_base<CatalogEntry, SchemaCatalogEntry>(&catalog, StringUtil::Lower(entry_name), true);
|
|
4284
4288
|
}
|
|
4285
4289
|
return nullptr;
|
|
4286
4290
|
}
|
|
@@ -4301,6 +4305,7 @@ vector<string> DefaultSchemaGenerator::GetDefaultEntries() {
|
|
|
4301
4305
|
|
|
4302
4306
|
|
|
4303
4307
|
|
|
4308
|
+
|
|
4304
4309
|
namespace duckdb {
|
|
4305
4310
|
|
|
4306
4311
|
struct DefaultView {
|
|
@@ -4344,7 +4349,9 @@ static DefaultView internal_views[] = {
|
|
|
4344
4349
|
{"information_schema", "tables", "SELECT NULL table_catalog, schema_name table_schema, table_name, CASE WHEN temporary THEN 'LOCAL TEMPORARY' ELSE 'BASE TABLE' END table_type, NULL self_referencing_column_name, NULL reference_generation, NULL user_defined_type_catalog, NULL user_defined_type_schema, NULL user_defined_type_name, 'YES' is_insertable_into, 'NO' is_typed, CASE WHEN temporary THEN 'PRESERVE' ELSE NULL END commit_action FROM duckdb_tables() UNION ALL SELECT NULL table_catalog, schema_name table_schema, view_name table_name, 'VIEW' table_type, NULL self_referencing_column_name, NULL reference_generation, NULL user_defined_type_catalog, NULL user_defined_type_schema, NULL user_defined_type_name, 'NO' is_insertable_into, 'NO' is_typed, NULL commit_action FROM duckdb_views;"},
|
|
4345
4350
|
{nullptr, nullptr, nullptr}};
|
|
4346
4351
|
|
|
4347
|
-
static unique_ptr<CreateViewInfo> GetDefaultView(const string &
|
|
4352
|
+
static unique_ptr<CreateViewInfo> GetDefaultView(const string &input_schema, const string &input_name) {
|
|
4353
|
+
auto schema = StringUtil::Lower(input_schema);
|
|
4354
|
+
auto name = StringUtil::Lower(input_name);
|
|
4348
4355
|
for (idx_t index = 0; internal_views[index].name != nullptr; index++) {
|
|
4349
4356
|
if (internal_views[index].schema == schema && internal_views[index].name == name) {
|
|
4350
4357
|
auto result = make_unique<CreateViewInfo>();
|
|
@@ -51894,7 +51901,6 @@ SinkResultType PhysicalSimpleAggregate::Sink(ExecutionContext &context, GlobalSi
|
|
|
51894
51901
|
sink.Reset();
|
|
51895
51902
|
|
|
51896
51903
|
DataChunk &payload_chunk = sink.payload_chunk;
|
|
51897
|
-
sink.child_executor.SetChunk(input);
|
|
51898
51904
|
for (idx_t aggr_idx = 0; aggr_idx < aggregates.size(); aggr_idx++) {
|
|
51899
51905
|
DataChunk filtered_input;
|
|
51900
51906
|
auto &aggregate = (BoundAggregateExpression &)*aggregates[aggr_idx];
|
|
@@ -51910,6 +51916,7 @@ SinkResultType PhysicalSimpleAggregate::Sink(ExecutionContext &context, GlobalSi
|
|
|
51910
51916
|
sink.child_executor.SetChunk(filtered_input);
|
|
51911
51917
|
payload_chunk.SetCardinality(count);
|
|
51912
51918
|
} else {
|
|
51919
|
+
sink.child_executor.SetChunk(input);
|
|
51913
51920
|
payload_chunk.SetCardinality(input);
|
|
51914
51921
|
}
|
|
51915
51922
|
// resolve the child expressions of the aggregate (if any)
|
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.3.3-
|
|
14
|
+
#define DUCKDB_SOURCE_ID "cc4ae8c95"
|
|
15
|
+
#define DUCKDB_VERSION "v0.3.3-dev375"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|