Skip to content

Commit f7ae8cb

Browse files
Update vendored DuckDB sources to 00cec88
1 parent 00cec88 commit f7ae8cb

File tree

15 files changed

+407
-370
lines changed

15 files changed

+407
-370
lines changed

src/duckdb/src/common/enum_util.cpp

Lines changed: 326 additions & 326 deletions
Large diffs are not rendered by default.

src/duckdb/src/function/table/version/pragma_version.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#ifndef DUCKDB_PATCH_VERSION
2-
#define DUCKDB_PATCH_VERSION "1-dev64"
2+
#define DUCKDB_PATCH_VERSION "1-dev100"
33
#endif
44
#ifndef DUCKDB_MINOR_VERSION
55
#define DUCKDB_MINOR_VERSION 1
@@ -8,10 +8,10 @@
88
#define DUCKDB_MAJOR_VERSION 1
99
#endif
1010
#ifndef DUCKDB_VERSION
11-
#define DUCKDB_VERSION "v1.1.1-dev64"
11+
#define DUCKDB_VERSION "v1.1.1-dev100"
1212
#endif
1313
#ifndef DUCKDB_SOURCE_ID
14-
#define DUCKDB_SOURCE_ID "e2b177b759"
14+
#define DUCKDB_SOURCE_ID "9af117f0e6"
1515
#endif
1616
#include "duckdb/function/table/system_functions.hpp"
1717
#include "duckdb/main/database.hpp"

src/duckdb/src/include/duckdb.h

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -866,8 +866,8 @@ Returns the number of rows present in the result object.
866866
* @return The number of rows present in the result object.
867867
*/
868868
DUCKDB_API idx_t duckdb_row_count(duckdb_result *result);
869-
#endif
870869

870+
#endif
871871
/*!
872872
Returns the number of rows changed by the query stored in the result. This is relevant only for INSERT/UPDATE/DELETE
873873
queries. For other queries the rows_changed will be 0.
@@ -898,9 +898,7 @@ printf("Data for row %d: %d\n", row, data[row]);
898898
* @return The column data of the specified column.
899899
*/
900900
DUCKDB_API void *duckdb_column_data(duckdb_result *result, idx_t col);
901-
#endif
902901

903-
#ifndef DUCKDB_API_NO_DEPRECATED
904902
/*!
905903
**DEPRECATED**: Prefer using `duckdb_result_get_chunk` instead.
906904
@@ -923,8 +921,8 @@ if (nullmask[row]) {
923921
* @return The nullmask of the specified column.
924922
*/
925923
DUCKDB_API bool *duckdb_nullmask_data(duckdb_result *result, idx_t col);
926-
#endif
927924

925+
#endif
928926
/*!
929927
Returns the error message contained within the result. The error is only set if `duckdb_query` returns `DuckDBError`.
930928
@@ -990,6 +988,7 @@ Returns the number of data chunks present in the result.
990988
*/
991989
DUCKDB_API idx_t duckdb_result_chunk_count(duckdb_result result);
992990

991+
#endif
993992
/*!
994993
Returns the return_type of the given result, or DUCKDB_RETURN_TYPE_INVALID on error
995994
@@ -998,7 +997,6 @@ Returns the return_type of the given result, or DUCKDB_RETURN_TYPE_INVALID on er
998997
*/
999998
DUCKDB_API duckdb_result_type duckdb_result_return_type(duckdb_result result);
1000999

1001-
#endif
10021000
//===--------------------------------------------------------------------===//
10031001
// Safe Fetch Functions
10041002
//===--------------------------------------------------------------------===//
@@ -1663,8 +1661,8 @@ Note that the result must be freed with `duckdb_destroy_result`.
16631661
*/
16641662
DUCKDB_API duckdb_state duckdb_execute_prepared_streaming(duckdb_prepared_statement prepared_statement,
16651663
duckdb_result *out_result);
1666-
#endif
16671664

1665+
#endif
16681666
//===--------------------------------------------------------------------===//
16691667
// Extract Statements
16701668
//===--------------------------------------------------------------------===//
@@ -1754,8 +1752,8 @@ Note that after calling `duckdb_pending_prepared_streaming`, the pending result
17541752
*/
17551753
DUCKDB_API duckdb_state duckdb_pending_prepared_streaming(duckdb_prepared_statement prepared_statement,
17561754
duckdb_pending_result *out_result);
1757-
#endif
17581755

1756+
#endif
17591757
/*!
17601758
Closes the pending result and de-allocates all memory allocated for the result.
17611759
@@ -4038,8 +4036,8 @@ It is not known beforehand how many chunks will be returned by this result.
40384036
* @return The resulting data chunk. Returns `NULL` if the result has an error.
40394037
*/
40404038
DUCKDB_API duckdb_data_chunk duckdb_stream_fetch_chunk(duckdb_result result);
4041-
#endif
40424039

4040+
#endif
40434041
/*!
40444042
Fetches a data chunk from a duckdb_result. This function should be called repeatedly until the result is exhausted.
40454043

src/duckdb/src/include/duckdb/main/config.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ struct DBConfigOptions {
245245
//! The peak allocation threshold at which to flush the allocator after completing a task (1 << 27, ~128MB)
246246
idx_t allocator_flush_threshold = 134217728ULL;
247247
//! If bulk deallocation larger than this occurs, flush outstanding allocations (1 << 30, ~1GB)
248-
idx_t allocator_bulk_deallocation_flush_threshold = 1073741824ULL;
248+
idx_t allocator_bulk_deallocation_flush_threshold = 536870912ULL;
249249
//! Whether the allocator background thread is enabled
250250
bool allocator_background_threads = false;
251251
//! DuckDB API surface

src/duckdb/src/include/duckdb/main/extension.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ struct ParsedExtensionMetaData {
5050
string duckdb_capi_version;
5151
string extension_version;
5252
string signature;
53+
string extension_abi_metadata;
5354

5455
bool AppearsValid() {
5556
return magic_value == EXPECTED_MAGIC_VALUE;

src/duckdb/src/include/duckdb/main/extension_helper.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class ExtensionHelper {
124124

125125
static bool CheckExtensionSignature(FileHandle &handle, ParsedExtensionMetaData &parsed_metadata,
126126
const bool allow_community_extensions);
127-
static ParsedExtensionMetaData ParseExtensionMetaData(const char *metadata);
127+
static ParsedExtensionMetaData ParseExtensionMetaData(const char *metadata) noexcept;
128128
static ParsedExtensionMetaData ParseExtensionMetaData(FileHandle &handle);
129129

130130
//! Get the extension url template, containing placeholders for version, platform and extension name

src/duckdb/src/include/duckdb/main/settings.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ struct HTTPProxyUsername {
506506
};
507507

508508
struct HTTPProxyPassword {
509-
static constexpr const char *Name = "http_proxy";
509+
static constexpr const char *Name = "http_proxy_password";
510510
static constexpr const char *Description = "Password for HTTP proxy";
511511
static constexpr const LogicalTypeId InputType = LogicalTypeId::VARCHAR;
512512
static void SetGlobal(DatabaseInstance *db, DBConfig &config, const Value &parameter);
@@ -596,7 +596,9 @@ struct StreamingBufferSize {
596596
struct MaximumTempDirectorySize {
597597
static constexpr const char *Name = "max_temp_directory_size";
598598
static constexpr const char *Description =
599-
"The maximum amount of data stored inside the 'temp_directory' (when set) (e.g. 1GB)";
599+
"The maximum amount of data stored inside the 'temp_directory' (when set). If the `temp_directory` is set to "
600+
"an existing directory, this option defaults to the available disk space on "
601+
"that drive. Otherwise, it defaults to 0 (implying that the temporary directory is not used).";
600602
static constexpr const LogicalTypeId InputType = LogicalTypeId::VARCHAR;
601603
static void SetGlobal(DatabaseInstance *db, DBConfig &config, const Value &parameter);
602604
static void ResetGlobal(DatabaseInstance *db, DBConfig &config);

src/duckdb/src/include/duckdb/storage/buffer/buffer_pool.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class BufferPool {
4141
friend class StandardBufferManager;
4242

4343
public:
44-
explicit BufferPool(idx_t maximum_memory, bool track_eviction_timestamps);
44+
BufferPool(idx_t maximum_memory, bool track_eviction_timestamps, idx_t allocator_bulk_deallocation_flush_threshold);
4545
virtual ~BufferPool();
4646

4747
//! Set a new memory limit to the buffer pool, throws an exception if the new limit is too low and not enough

src/duckdb/src/main/database.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@
22

33
#include "duckdb/catalog/catalog.hpp"
44
#include "duckdb/common/virtual_file_system.hpp"
5+
#include "duckdb/execution/index/index_type_set.hpp"
56
#include "duckdb/execution/operator/helper/physical_set.hpp"
67
#include "duckdb/function/cast/cast_function_set.hpp"
78
#include "duckdb/function/compression_function.hpp"
89
#include "duckdb/main/attached_database.hpp"
910
#include "duckdb/main/client_context.hpp"
1011
#include "duckdb/main/connection_manager.hpp"
12+
#include "duckdb/main/database_file_opener.hpp"
1113
#include "duckdb/main/database_manager.hpp"
1214
#include "duckdb/main/database_path_and_type.hpp"
15+
#include "duckdb/main/db_instance_cache.hpp"
1316
#include "duckdb/main/error_manager.hpp"
1417
#include "duckdb/main/extension_helper.hpp"
1518
#include "duckdb/main/secret/secret_manager.hpp"
1619
#include "duckdb/parallel/task_scheduler.hpp"
1720
#include "duckdb/parser/parsed_data/attach_info.hpp"
21+
#include "duckdb/planner/collation_binding.hpp"
1822
#include "duckdb/planner/extension_callback.hpp"
1923
#include "duckdb/storage/object_cache.hpp"
2024
#include "duckdb/storage/standard_buffer_manager.hpp"
2125
#include "duckdb/storage/storage_extension.hpp"
2226
#include "duckdb/storage/storage_manager.hpp"
2327
#include "duckdb/transaction/transaction_manager.hpp"
24-
#include "duckdb/execution/index/index_type_set.hpp"
25-
#include "duckdb/main/database_file_opener.hpp"
26-
#include "duckdb/planner/collation_binding.hpp"
27-
#include "duckdb/main/db_instance_cache.hpp"
2828

2929
#ifndef DUCKDB_NO_THREADS
3030
#include "duckdb/common/thread.hpp"
@@ -436,7 +436,8 @@ void DatabaseInstance::Configure(DBConfig &new_config, const char *database_path
436436
config.buffer_pool = std::move(new_config.buffer_pool);
437437
} else {
438438
config.buffer_pool = make_shared_ptr<BufferPool>(config.options.maximum_memory,
439-
config.options.buffer_manager_track_eviction_timestamps);
439+
config.options.buffer_manager_track_eviction_timestamps,
440+
config.options.allocator_bulk_deallocation_flush_threshold);
440441
}
441442
}
442443

src/duckdb/src/main/extension.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ string ParsedExtensionMetaData::GetInvalidMetadataError() {
6262
DUCKDB_EXTENSION_API_VERSION_MINOR, DUCKDB_EXTENSION_API_VERSION_PATCH);
6363
}
6464
} else {
65-
throw InternalException("Unknown ABI type for extension: " + EnumUtil::ToString(abi_type));
65+
throw InternalException("Unknown ABI type for extension: " + extension_abi_metadata);
6666
}
6767

6868
if (engine_platform != platform) {

0 commit comments

Comments
 (0)