duckdb 0.3.3-dev1229.0 → 0.3.3-dev1232.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
- "version": "0.3.3-dev1229.0",
4
+ "version": "0.3.3-dev1232.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -5307,15 +5307,19 @@ int ResultArrowArrayStreamWrapper::MyStreamGetNext(struct ArrowArrayStream *stre
5307
5307
  out->release = nullptr;
5308
5308
  return 0;
5309
5309
  }
5310
- while (chunk_result->size() < my_stream->batch_size) {
5310
+ unique_ptr<DataChunk> agg_chunk_result = make_unique<DataChunk>();
5311
+ agg_chunk_result->Initialize(chunk_result->GetTypes());
5312
+ agg_chunk_result->Append(*chunk_result, true);
5313
+
5314
+ while (agg_chunk_result->size() < my_stream->batch_size) {
5311
5315
  auto new_chunk = result.Fetch();
5312
5316
  if (!new_chunk) {
5313
5317
  break;
5314
5318
  } else {
5315
- chunk_result->Append(*new_chunk, true);
5319
+ agg_chunk_result->Append(*new_chunk, true);
5316
5320
  }
5317
5321
  }
5318
- chunk_result->ToArrowArray(out);
5322
+ agg_chunk_result->ToArrowArray(out);
5319
5323
  return 0;
5320
5324
  }
5321
5325
 
@@ -97480,8 +97484,7 @@ void ArrowTableFunction::ArrowToDuckDB(ArrowScanState &scan_state,
97480
97484
  if (array.length != scan_state.chunk->arrow_array.length) {
97481
97485
  throw InvalidInputException("arrow_scan: array length mismatch");
97482
97486
  }
97483
- output.data[idx].GetBuffer()->SetAuxiliaryData(make_unique<ArrowAuxiliaryData>(scan_state.chunk),
97484
- VectorAuxiliaryDataType::ARROW_AUXILIARY);
97487
+ output.data[idx].GetBuffer()->SetAuxiliaryData(make_unique<ArrowAuxiliaryData>(scan_state.chunk));
97485
97488
  if (array.dictionary) {
97486
97489
  ColumnArrowToDuckDBDictionary(output.data[idx], array, scan_state, output.size(), arrow_convert_data,
97487
97490
  col_idx, arrow_convert_idx);
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 "f96b137eb"
15
- #define DUCKDB_VERSION "v0.3.3-dev1229"
14
+ #define DUCKDB_SOURCE_ID "041fb2cc7"
15
+ #define DUCKDB_VERSION "v0.3.3-dev1232"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //
@@ -3412,7 +3412,7 @@ public:
3412
3412
  return aux_data.get();
3413
3413
  }
3414
3414
 
3415
- void SetAuxiliaryData(unique_ptr<VectorAuxiliaryData> aux_data_p, VectorAuxiliaryDataType aux_type_p) {
3415
+ void SetAuxiliaryData(unique_ptr<VectorAuxiliaryData> aux_data_p) {
3416
3416
  aux_data = move(aux_data_p);
3417
3417
  }
3418
3418