duckdb 0.8.1-dev287.0 → 0.8.1-dev327.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/extension/parquet/parquet-extension.cpp +24 -0
- package/src/duckdb/src/common/types/timestamp.cpp +37 -1
- package/src/duckdb/src/core_functions/aggregate/holistic/quantile.cpp +18 -12
- package/src/duckdb/src/execution/index/art/art.cpp +80 -7
- package/src/duckdb/src/execution/index/art/fixed_size_allocator.cpp +20 -1
- package/src/duckdb/src/execution/index/art/leaf.cpp +10 -11
- package/src/duckdb/src/execution/index/art/leaf_segment.cpp +10 -0
- package/src/duckdb/src/execution/index/art/node.cpp +47 -35
- package/src/duckdb/src/execution/index/art/node16.cpp +3 -0
- package/src/duckdb/src/execution/index/art/node256.cpp +1 -0
- package/src/duckdb/src/execution/index/art/node4.cpp +3 -0
- package/src/duckdb/src/execution/index/art/node48.cpp +2 -0
- package/src/duckdb/src/execution/index/art/prefix.cpp +2 -0
- package/src/duckdb/src/execution/operator/schema/physical_create_index.cpp +29 -3
- package/src/duckdb/src/function/table/read_csv.cpp +2 -0
- package/src/duckdb/src/function/table/repeat.cpp +3 -0
- package/src/duckdb/src/function/table/version/pragma_version.cpp +2 -2
- package/src/duckdb/src/include/duckdb/common/types/timestamp.hpp +4 -14
- package/src/duckdb/src/include/duckdb/execution/index/art/art.hpp +10 -4
- package/src/duckdb/src/include/duckdb/execution/index/art/fixed_size_allocator.hpp +3 -0
- package/src/duckdb/src/include/duckdb/execution/index/art/leaf.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/index/art/leaf_segment.hpp +2 -0
- package/src/duckdb/src/include/duckdb/execution/index/art/node.hpp +13 -3
- package/src/duckdb/src/include/duckdb/execution/index/art/node48.hpp +1 -0
- package/src/duckdb/src/include/duckdb/parser/transformer.hpp +0 -2
- package/src/duckdb/src/include/duckdb/storage/compression/chimp/algorithm/byte_reader.hpp +4 -0
- package/src/duckdb/src/include/duckdb/storage/in_memory_block_manager.hpp +13 -13
- package/src/duckdb/src/include/duckdb/storage/index.hpp +4 -2
- package/src/duckdb/src/include/duckdb/storage/storage_extension.hpp +0 -6
- package/src/duckdb/src/parser/parsed_data/create_info.cpp +0 -3
- package/src/duckdb/src/parser/transform/helpers/nodetype_to_string.cpp +0 -2
- package/src/duckdb/src/parser/transform/statement/transform_drop.cpp +0 -3
- package/src/duckdb/src/parser/transformer.cpp +0 -2
- package/src/duckdb/src/planner/binder/statement/bind_create.cpp +0 -27
- package/src/duckdb/src/planner/binder/statement/bind_drop.cpp +0 -25
- package/src/duckdb/src/planner/operator/logical_pivot.cpp +14 -2
- package/src/duckdb/src/storage/index.cpp +13 -0
- package/src/duckdb/third_party/libpg_query/include/nodes/parsenodes.hpp +0 -14
- package/src/duckdb/third_party/libpg_query/src_backend_parser_gram.cpp +12828 -12956
- package/src/duckdb/third_party/zstd/compress/zstd_compress.cpp +3 -0
- package/src/duckdb/third_party/zstd/include/zstd/compress/zstd_cwksp.h +4 -0
- package/src/duckdb/ub_src_parser_transform_statement.cpp +0 -2
- package/src/duckdb/src/include/duckdb/parser/parsed_data/create_database_info.hpp +0 -46
- package/src/duckdb/src/parser/transform/statement/transform_create_database.cpp +0 -27
@@ -24,8 +24,6 @@
|
|
24
24
|
|
25
25
|
#include "src/parser/transform/statement/transform_create_type.cpp"
|
26
26
|
|
27
|
-
#include "src/parser/transform/statement/transform_create_database.cpp"
|
28
|
-
|
29
27
|
#include "src/parser/transform/statement/transform_delete.cpp"
|
30
28
|
|
31
29
|
#include "src/parser/transform/statement/transform_explain.cpp"
|
@@ -1,46 +0,0 @@
|
|
1
|
-
//===----------------------------------------------------------------------===//
|
2
|
-
// DuckDB
|
3
|
-
//
|
4
|
-
// duckdb/parser/parsed_data/create_database_info.hpp
|
5
|
-
//
|
6
|
-
//
|
7
|
-
//===----------------------------------------------------------------------===//
|
8
|
-
|
9
|
-
#pragma once
|
10
|
-
|
11
|
-
#include "duckdb/parser/parsed_data/create_info.hpp"
|
12
|
-
|
13
|
-
namespace duckdb {
|
14
|
-
|
15
|
-
struct CreateDatabaseInfo : public CreateInfo {
|
16
|
-
CreateDatabaseInfo() : CreateInfo(CatalogType::DATABASE_ENTRY) {
|
17
|
-
}
|
18
|
-
|
19
|
-
//! Name of the database
|
20
|
-
string name;
|
21
|
-
|
22
|
-
//! Source path of the database if it's created from another database
|
23
|
-
string path;
|
24
|
-
|
25
|
-
public:
|
26
|
-
unique_ptr<CreateInfo> Copy() const override {
|
27
|
-
auto result = make_uniq<CreateDatabaseInfo>();
|
28
|
-
CopyProperties(*result);
|
29
|
-
result->name = name;
|
30
|
-
result->path = path;
|
31
|
-
return unique_ptr<CreateInfo>(result.release());
|
32
|
-
}
|
33
|
-
|
34
|
-
static unique_ptr<CreateDatabaseInfo> Deserialize(Deserializer &deserializer) {
|
35
|
-
auto result = make_uniq<CreateDatabaseInfo>();
|
36
|
-
result->DeserializeBase(deserializer);
|
37
|
-
return result;
|
38
|
-
}
|
39
|
-
|
40
|
-
protected:
|
41
|
-
void SerializeInternal(Serializer &) const override {
|
42
|
-
throw NotImplementedException("Cannot serialize '%s'", CatalogTypeToString(type));
|
43
|
-
}
|
44
|
-
};
|
45
|
-
|
46
|
-
} // namespace duckdb
|
@@ -1,27 +0,0 @@
|
|
1
|
-
#include "duckdb/parser/statement/create_statement.hpp"
|
2
|
-
#include "duckdb/parser/parsed_data/create_database_info.hpp"
|
3
|
-
#include "duckdb/parser/transformer.hpp"
|
4
|
-
#include "duckdb/common/unordered_set.hpp"
|
5
|
-
#include "duckdb/common/operator/cast_operators.hpp"
|
6
|
-
|
7
|
-
namespace duckdb {
|
8
|
-
|
9
|
-
unique_ptr<CreateStatement> Transformer::TransformCreateDatabase(duckdb_libpgquery::PGCreateDatabaseStmt &stmt) {
|
10
|
-
auto result = make_uniq<CreateStatement>();
|
11
|
-
auto info = make_uniq<CreateDatabaseInfo>();
|
12
|
-
|
13
|
-
info->path = stmt.path ? stmt.path : string();
|
14
|
-
|
15
|
-
auto qualified_name = TransformQualifiedName(*stmt.name);
|
16
|
-
if (!IsInvalidCatalog(qualified_name.catalog)) {
|
17
|
-
throw ParserException("Expected \"CREATE DATABASE database\" ");
|
18
|
-
}
|
19
|
-
|
20
|
-
info->catalog = qualified_name.catalog;
|
21
|
-
info->name = qualified_name.name;
|
22
|
-
|
23
|
-
result->info = std::move(info);
|
24
|
-
return result;
|
25
|
-
}
|
26
|
-
|
27
|
-
} // namespace duckdb
|