duckdb 0.4.1-dev696.0 → 0.4.1-dev723.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/connection.cpp +1 -1
- package/src/data_chunk.cpp +2 -2
- package/src/duckdb.cpp +473 -463
- package/src/duckdb.hpp +54 -49
- package/src/parquet-amalgamation.cpp +17822 -17822
package/package.json
CHANGED
package/src/connection.cpp
CHANGED
|
@@ -207,7 +207,7 @@ struct RegisterTask : public Task {
|
|
|
207
207
|
// here we can do only DuckDB stuff because we do not have a functioning env
|
|
208
208
|
|
|
209
209
|
// Flatten all args to simplify udfs
|
|
210
|
-
args.
|
|
210
|
+
args.Flatten();
|
|
211
211
|
|
|
212
212
|
JSArgs jsargs;
|
|
213
213
|
jsargs.rows = args.size();
|
package/src/data_chunk.cpp
CHANGED
|
@@ -14,7 +14,7 @@ Napi::Array EncodeDataChunk(Napi::Env env, duckdb::DataChunk &chunk, bool with_t
|
|
|
14
14
|
// Make sure we only have flat vectors hereafter (for now)
|
|
15
15
|
auto &chunk_vec = chunk.data[col_idx];
|
|
16
16
|
if (with_data) {
|
|
17
|
-
chunk_vec.
|
|
17
|
+
chunk_vec.Flatten(chunk.size());
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
// Do a post-order DFS traversal
|
|
@@ -52,7 +52,7 @@ Napi::Array EncodeDataChunk(Napi::Env env, duckdb::DataChunk &chunk, bool with_t
|
|
|
52
52
|
|
|
53
53
|
// Create validity vector
|
|
54
54
|
if (with_data) {
|
|
55
|
-
vec->
|
|
55
|
+
vec->Flatten(chunk.size());
|
|
56
56
|
auto &validity = duckdb::FlatVector::Validity(*vec);
|
|
57
57
|
auto validity_buffer = Napi::Uint8Array::New(env, chunk.size());
|
|
58
58
|
for (idx_t row_idx = 0; row_idx < chunk.size(); row_idx++) {
|