duckdb 0.5.2-dev1620.0 → 0.5.2-dev1740.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 +35 -3
- package/src/duckdb.hpp +2 -3
- package/src/parquet-amalgamation.cpp +37383 -37383
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -6501,10 +6501,20 @@ void DependencyManager::AddOwnership(ClientContext &context, CatalogEntry *owner
|
|
|
6501
6501
|
|
|
6502
6502
|
|
|
6503
6503
|
|
|
6504
|
+
|
|
6505
|
+
|
|
6506
|
+
#include <cstdint>
|
|
6507
|
+
|
|
6504
6508
|
#ifdef DUCKDB_DEBUG_ALLOCATION
|
|
6505
6509
|
|
|
6506
6510
|
|
|
6507
6511
|
|
|
6512
|
+
|
|
6513
|
+
#include <execinfo.h>
|
|
6514
|
+
#endif
|
|
6515
|
+
|
|
6516
|
+
#if defined(BUILD_JEMALLOC_EXTENSION) && !defined(WIN32)
|
|
6517
|
+
#include "jemalloc-extension.hpp"
|
|
6508
6518
|
#endif
|
|
6509
6519
|
|
|
6510
6520
|
namespace duckdb {
|
|
@@ -6575,9 +6585,15 @@ PrivateAllocatorData::~PrivateAllocatorData() {
|
|
|
6575
6585
|
//===--------------------------------------------------------------------===//
|
|
6576
6586
|
// Allocator
|
|
6577
6587
|
//===--------------------------------------------------------------------===//
|
|
6588
|
+
#if defined(BUILD_JEMALLOC_EXTENSION) && !defined(WIN32)
|
|
6589
|
+
Allocator::Allocator()
|
|
6590
|
+
: Allocator(JEMallocExtension::Allocate, JEMallocExtension::Free, JEMallocExtension::Reallocate, nullptr) {
|
|
6591
|
+
}
|
|
6592
|
+
#else
|
|
6578
6593
|
Allocator::Allocator()
|
|
6579
6594
|
: Allocator(Allocator::DefaultAllocate, Allocator::DefaultFree, Allocator::DefaultReallocate, nullptr) {
|
|
6580
6595
|
}
|
|
6596
|
+
#endif
|
|
6581
6597
|
|
|
6582
6598
|
Allocator::Allocator(allocate_function_ptr_t allocate_function_p, free_function_ptr_t free_function_p,
|
|
6583
6599
|
reallocate_function_ptr_t reallocate_function_p, unique_ptr<PrivateAllocatorData> private_data_p)
|
|
@@ -136410,6 +136426,7 @@ ErrorManager &ErrorManager::Get(DatabaseInstance &context) {
|
|
|
136410
136426
|
|
|
136411
136427
|
|
|
136412
136428
|
|
|
136429
|
+
|
|
136413
136430
|
#if defined(BUILD_ICU_EXTENSION) && !defined(DISABLE_BUILTIN_EXTENSIONS)
|
|
136414
136431
|
#define ICU_STATICALLY_LOADED true
|
|
136415
136432
|
#include "icu-extension.hpp"
|
|
@@ -136463,6 +136480,13 @@ ErrorManager &ErrorManager::Get(DatabaseInstance &context) {
|
|
|
136463
136480
|
#define JSON_STATICALLY_LOADED false
|
|
136464
136481
|
#endif
|
|
136465
136482
|
|
|
136483
|
+
#if defined(BUILD_JEMALLOC_EXTENSION) && !defined(DISABLE_BUILTIN_EXTENSIONS)
|
|
136484
|
+
#define JEMALLOC_STATICALLY_LOADED true
|
|
136485
|
+
#include "jemalloc-extension.hpp"
|
|
136486
|
+
#else
|
|
136487
|
+
#define JEMALLOC_STATICALLY_LOADED false
|
|
136488
|
+
#endif
|
|
136489
|
+
|
|
136466
136490
|
#if defined(BUILD_EXCEL_EXTENSION) && !defined(DISABLE_BUILTIN_EXTENSIONS)
|
|
136467
136491
|
#include "excel-extension.hpp"
|
|
136468
136492
|
#endif
|
|
@@ -136488,6 +136512,7 @@ static DefaultExtension internal_extensions[] = {
|
|
|
136488
136512
|
{"fts", "Adds support for Full-Text Search Indexes", FTS_STATICALLY_LOADED},
|
|
136489
136513
|
{"httpfs", "Adds support for reading and writing files over a HTTP(S) connection", HTTPFS_STATICALLY_LOADED},
|
|
136490
136514
|
{"json", "Adds support for JSON operations", JSON_STATICALLY_LOADED},
|
|
136515
|
+
{"jemalloc", "Overwrites system allocator with JEMalloc", JEMALLOC_STATICALLY_LOADED},
|
|
136491
136516
|
{"sqlite_scanner", "Adds support for reading SQLite database files", false},
|
|
136492
136517
|
{"postgres_scanner", "Adds support for reading from a Postgres database", false},
|
|
136493
136518
|
{"inet", "Adds support for IP-related data types and functions", false},
|
|
@@ -136509,8 +136534,8 @@ DefaultExtension ExtensionHelper::GetDefaultExtension(idx_t index) {
|
|
|
136509
136534
|
// Load Statically Compiled Extension
|
|
136510
136535
|
//===--------------------------------------------------------------------===//
|
|
136511
136536
|
void ExtensionHelper::LoadAllExtensions(DuckDB &db) {
|
|
136512
|
-
unordered_set<string> extensions {"parquet", "icu", "tpch", "tpcds", "fts",
|
|
136513
|
-
"visualizer", "json", "excel", "sqlsmith", "inet"};
|
|
136537
|
+
unordered_set<string> extensions {"parquet", "icu", "tpch", "tpcds", "fts", "httpfs",
|
|
136538
|
+
"visualizer", "json", "excel", "sqlsmith", "inet", "jemalloc"};
|
|
136514
136539
|
for (auto &ext : extensions) {
|
|
136515
136540
|
LoadExtensionInternal(db, ext, true);
|
|
136516
136541
|
}
|
|
@@ -136606,12 +136631,19 @@ ExtensionLoadResult ExtensionHelper::LoadExtensionInternal(DuckDB &db, const std
|
|
|
136606
136631
|
#else
|
|
136607
136632
|
// excel extension required but not build: skip this test
|
|
136608
136633
|
return ExtensionLoadResult::NOT_LOADED;
|
|
136634
|
+
#endif
|
|
136635
|
+
} else if (extension == "jemalloc") {
|
|
136636
|
+
#if defined(BUILD_JEMALLOC_EXTENSION) && !defined(DISABLE_BUILTIN_EXTENSIONS)
|
|
136637
|
+
db.LoadExtension<JEMallocExtension>();
|
|
136638
|
+
#else
|
|
136639
|
+
// jemalloc extension required but not build: skip this test
|
|
136640
|
+
return ExtensionLoadResult::NOT_LOADED;
|
|
136609
136641
|
#endif
|
|
136610
136642
|
} else if (extension == "inet") {
|
|
136611
136643
|
#if defined(BUILD_INET_EXTENSION) && !defined(DISABLE_BUILTIN_EXTENSIONS)
|
|
136612
136644
|
db.LoadExtension<INETExtension>();
|
|
136613
136645
|
#else
|
|
136614
|
-
//
|
|
136646
|
+
// inet extension required but not build: skip this test
|
|
136615
136647
|
return ExtensionLoadResult::NOT_LOADED;
|
|
136616
136648
|
#endif
|
|
136617
136649
|
} else {
|
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 "a09de46040"
|
|
15
|
+
#define DUCKDB_VERSION "v0.5.2-dev1740"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|
|
@@ -3569,7 +3569,6 @@ public:
|
|
|
3569
3569
|
AllocatedData Allocate(idx_t size) {
|
|
3570
3570
|
return AllocatedData(*this, AllocateData(size), size);
|
|
3571
3571
|
}
|
|
3572
|
-
|
|
3573
3572
|
static data_ptr_t DefaultAllocate(PrivateAllocatorData *private_data, idx_t size) {
|
|
3574
3573
|
return (data_ptr_t)malloc(size);
|
|
3575
3574
|
}
|