duckdb 0.3.3-dev575.0 → 0.3.3-dev585.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 +7 -10
- package/src/duckdb.hpp +2 -2
- package/src/parquet-amalgamation.cpp +35279 -35279
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -99133,7 +99133,8 @@ void PragmaDatabaseSizeFunction(ClientContext &context, const FunctionData *bind
|
|
|
99133
99133
|
auto free_blocks = block_manager.FreeBlocks();
|
|
99134
99134
|
auto used_blocks = total_blocks - free_blocks;
|
|
99135
99135
|
auto bytes = (total_blocks * block_size);
|
|
99136
|
-
auto
|
|
99136
|
+
auto wal = storage.GetWriteAheadLog();
|
|
99137
|
+
auto wal_size = wal ? wal->GetWALSize() : 0;
|
|
99137
99138
|
output.data[0].SetValue(0, Value(StringUtil::BytesToHumanReadableString(bytes)));
|
|
99138
99139
|
output.data[1].SetValue(0, Value::BIGINT(block_size));
|
|
99139
99140
|
output.data[2].SetValue(0, Value::BIGINT(total_blocks));
|
|
@@ -227335,6 +227336,7 @@ size_t Utf8Proc::RenderWidth(const char *s, size_t len, size_t pos) {
|
|
|
227335
227336
|
|
|
227336
227337
|
|
|
227337
227338
|
#include <stdlib.h>
|
|
227339
|
+
#include <string>
|
|
227338
227340
|
|
|
227339
227341
|
|
|
227340
227342
|
|
|
@@ -227347,7 +227349,7 @@ typedef struct parse_result_str parse_result;
|
|
|
227347
227349
|
struct parse_result_str {
|
|
227348
227350
|
bool success;
|
|
227349
227351
|
PGList *parse_tree;
|
|
227350
|
-
|
|
227352
|
+
std::string error_message;
|
|
227351
227353
|
int error_location;
|
|
227352
227354
|
};
|
|
227353
227355
|
|
|
@@ -227428,6 +227430,7 @@ static void allocate_new(parser_state *state, size_t n) {
|
|
|
227428
227430
|
if (state->malloc_ptr_idx >= state->malloc_ptr_size) {
|
|
227429
227431
|
size_t new_size = state->malloc_ptr_size * 2;
|
|
227430
227432
|
auto new_malloc_ptrs = (char **) malloc(sizeof(char *) * new_size);
|
|
227433
|
+
memset(new_malloc_ptrs, 0, sizeof(char*) * new_size);
|
|
227431
227434
|
memcpy(new_malloc_ptrs, state->malloc_ptrs, state->malloc_ptr_size * sizeof(char*));
|
|
227432
227435
|
free(state->malloc_ptrs);
|
|
227433
227436
|
state->malloc_ptr_size = new_size;
|
|
@@ -227469,6 +227472,7 @@ void pg_parser_init() {
|
|
|
227469
227472
|
|
|
227470
227473
|
pg_parser_state.malloc_ptr_size = 4;
|
|
227471
227474
|
pg_parser_state.malloc_ptrs = (char **) malloc(sizeof(char *) * pg_parser_state.malloc_ptr_size);
|
|
227475
|
+
memset(pg_parser_state.malloc_ptrs, 0, sizeof(char*) * pg_parser_state.malloc_ptr_size);
|
|
227472
227476
|
pg_parser_state.malloc_ptr_idx = 0;
|
|
227473
227477
|
allocate_new(&pg_parser_state, 1);
|
|
227474
227478
|
}
|
|
@@ -227480,14 +227484,7 @@ void pg_parser_parse(const char *query, parse_result *res) {
|
|
|
227480
227484
|
res->success = pg_parser_state.pg_err_code == PGUNDEFINED;
|
|
227481
227485
|
} catch (std::exception &ex) {
|
|
227482
227486
|
res->success = false;
|
|
227483
|
-
|
|
227484
|
-
auto error_message = ex.what();
|
|
227485
|
-
uint32_t pos = 0;
|
|
227486
|
-
while(pos < 1023 && error_message[pos]) {
|
|
227487
|
-
pg_parser_state.pg_err_msg[pos] = error_message[pos];
|
|
227488
|
-
pos++;
|
|
227489
|
-
}
|
|
227490
|
-
pg_parser_state.pg_err_msg[pos] = '\0';
|
|
227487
|
+
res->error_message = ex.what();
|
|
227491
227488
|
}
|
|
227492
227489
|
res->error_message = pg_parser_state.pg_err_msg;
|
|
227493
227490
|
res->error_location = pg_parser_state.pg_err_pos;
|
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 "b52293246"
|
|
15
|
+
#define DUCKDB_VERSION "v0.3.3-dev585"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|