duckdb 0.3.2-dev1316.0 → 0.3.2-dev1318.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.2-dev1316.0",
4
+ "version": "0.3.2-dev1318.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -49352,7 +49352,6 @@ SinkResultType PhysicalSimpleAggregate::Sink(ExecutionContext &context, GlobalSi
49352
49352
 
49353
49353
  DataChunk &payload_chunk = sink.payload_chunk;
49354
49354
  sink.child_executor.SetChunk(input);
49355
- payload_chunk.SetCardinality(input);
49356
49355
  for (idx_t aggr_idx = 0; aggr_idx < aggregates.size(); aggr_idx++) {
49357
49356
  DataChunk filtered_input;
49358
49357
  auto &aggregate = (BoundAggregateExpression &)*aggregates[aggr_idx];
@@ -49367,6 +49366,8 @@ SinkResultType PhysicalSimpleAggregate::Sink(ExecutionContext &context, GlobalSi
49367
49366
  filtered_input.Slice(input, true_sel, count);
49368
49367
  sink.child_executor.SetChunk(filtered_input);
49369
49368
  payload_chunk.SetCardinality(count);
49369
+ } else {
49370
+ payload_chunk.SetCardinality(input);
49370
49371
  }
49371
49372
  // resolve the child expressions of the aggregate (if any)
49372
49373
  if (!aggregate.children.empty()) {