duckdb 0.3.3-dev508.0 → 0.3.3-dev520.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 +16 -5
- package/src/duckdb.hpp +4 -3
- package/src/parquet-amalgamation.cpp +27547 -27547
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -2639,6 +2639,8 @@ protected:
|
|
|
2639
2639
|
|
|
2640
2640
|
|
|
2641
2641
|
|
|
2642
|
+
|
|
2643
|
+
|
|
2642
2644
|
#include <algorithm>
|
|
2643
2645
|
#include <sstream>
|
|
2644
2646
|
|
|
@@ -2929,6 +2931,15 @@ unique_ptr<CatalogEntry> TableCatalogEntry::SetDefault(ClientContext &context, S
|
|
|
2929
2931
|
}
|
|
2930
2932
|
|
|
2931
2933
|
unique_ptr<CatalogEntry> TableCatalogEntry::ChangeColumnType(ClientContext &context, ChangeColumnTypeInfo &info) {
|
|
2934
|
+
if (info.target_type.id() == LogicalTypeId::USER) {
|
|
2935
|
+
auto &user_type_name = UserType::GetTypeName(info.target_type);
|
|
2936
|
+
auto user_type_catalog = (TypeCatalogEntry *)context.db->GetCatalog().GetEntry(
|
|
2937
|
+
context, CatalogType::TYPE_ENTRY, schema->name, user_type_name, true);
|
|
2938
|
+
if (!user_type_catalog) {
|
|
2939
|
+
throw NotImplementedException("DataType %s not supported yet...\n", user_type_name);
|
|
2940
|
+
}
|
|
2941
|
+
info.target_type = user_type_catalog->user_type;
|
|
2942
|
+
}
|
|
2932
2943
|
auto create_info = make_unique<CreateTableInfo>(schema->name, name);
|
|
2933
2944
|
idx_t change_idx = GetColumnIndex(info.column_name);
|
|
2934
2945
|
for (idx_t i = 0; i < columns.size(); i++) {
|
|
@@ -13646,7 +13657,7 @@ void FileSystem::RemoveDirectory(const string &directory) {
|
|
|
13646
13657
|
throw NotImplementedException("%s: RemoveDirectory is not implemented!", GetName());
|
|
13647
13658
|
}
|
|
13648
13659
|
|
|
13649
|
-
bool FileSystem::ListFiles(const string &directory, const std::function<void(string
|
|
13660
|
+
bool FileSystem::ListFiles(const string &directory, const std::function<void(const string &, bool)> &callback) {
|
|
13650
13661
|
throw NotImplementedException("%s: ListFiles is not implemented!", GetName());
|
|
13651
13662
|
}
|
|
13652
13663
|
|
|
@@ -15771,7 +15782,7 @@ public:
|
|
|
15771
15782
|
//! Recursively remove a directory and all files in it
|
|
15772
15783
|
void RemoveDirectory(const string &directory) override;
|
|
15773
15784
|
//! List files in a directory, invoking the callback method for each one with (filename, is_dir)
|
|
15774
|
-
bool ListFiles(const string &directory, const std::function<void(string
|
|
15785
|
+
bool ListFiles(const string &directory, const std::function<void(const string &, bool)> &callback) override;
|
|
15775
15786
|
//! Move a file from source path to the target, StorageManager relies on this being an atomic action for ACID
|
|
15776
15787
|
//! properties
|
|
15777
15788
|
void MoveFile(const string &source, const string &target) override;
|
|
@@ -16283,7 +16294,7 @@ void LocalFileSystem::RemoveFile(const string &filename) {
|
|
|
16283
16294
|
}
|
|
16284
16295
|
}
|
|
16285
16296
|
|
|
16286
|
-
bool LocalFileSystem::ListFiles(const string &directory, const std::function<void(string
|
|
16297
|
+
bool LocalFileSystem::ListFiles(const string &directory, const std::function<void(const string &, bool)> &callback) {
|
|
16287
16298
|
if (!DirectoryExists(directory)) {
|
|
16288
16299
|
return false;
|
|
16289
16300
|
}
|
|
@@ -16597,7 +16608,7 @@ void LocalFileSystem::RemoveFile(const string &filename) {
|
|
|
16597
16608
|
DeleteFileW(unicode_path.c_str());
|
|
16598
16609
|
}
|
|
16599
16610
|
|
|
16600
|
-
bool LocalFileSystem::ListFiles(const string &directory, const std::function<void(string
|
|
16611
|
+
bool LocalFileSystem::ListFiles(const string &directory, const std::function<void(const string &, bool)> &callback) {
|
|
16601
16612
|
string search_dir = JoinPath(directory, "*");
|
|
16602
16613
|
|
|
16603
16614
|
auto unicode_path = WindowsUtil::UTF8ToUnicode(search_dir.c_str());
|
|
@@ -45551,7 +45562,7 @@ public:
|
|
|
45551
45562
|
FindFileSystem(directory)->RemoveDirectory(directory);
|
|
45552
45563
|
}
|
|
45553
45564
|
|
|
45554
|
-
bool ListFiles(const string &directory, const std::function<void(string
|
|
45565
|
+
bool ListFiles(const string &directory, const std::function<void(const string &, bool)> &callback) override {
|
|
45555
45566
|
return FindFileSystem(directory)->ListFiles(directory, callback);
|
|
45556
45567
|
}
|
|
45557
45568
|
|
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 "4e5344f6b"
|
|
15
|
+
#define DUCKDB_VERSION "v0.3.3-dev520"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|
|
@@ -1924,7 +1924,8 @@ public:
|
|
|
1924
1924
|
//! Recursively remove a directory and all files in it
|
|
1925
1925
|
DUCKDB_API virtual void RemoveDirectory(const string &directory);
|
|
1926
1926
|
//! List files in a directory, invoking the callback method for each one with (filename, is_dir)
|
|
1927
|
-
DUCKDB_API virtual bool ListFiles(const string &directory,
|
|
1927
|
+
DUCKDB_API virtual bool ListFiles(const string &directory,
|
|
1928
|
+
const std::function<void(const string &, bool)> &callback);
|
|
1928
1929
|
//! Move a file from source path to the target, StorageManager relies on this being an atomic action for ACID
|
|
1929
1930
|
//! properties
|
|
1930
1931
|
DUCKDB_API virtual void MoveFile(const string &source, const string &target);
|