duckdb 0.3.1-dev397.0 → 0.3.1-dev399.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.1-dev397.0",
4
+ "version": "0.3.1-dev399.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -34027,10 +34027,11 @@ static void QuicksortInPlace(ChunkCollection *sort_by, vector<OrderType> &desc,
34027
34027
  }
34028
34028
 
34029
34029
  void ChunkCollection::Sort(vector<OrderType> &desc, vector<OrderByNullType> &null_order, idx_t result[]) {
34030
- D_ASSERT(result);
34031
34030
  if (count == 0) {
34032
34031
  return;
34033
34032
  }
34033
+ D_ASSERT(result);
34034
+
34034
34035
  // start off with an initial quicksort
34035
34036
  int64_t part = QuicksortInitial(this, desc, null_order, result);
34036
34037
 
@@ -77184,9 +77185,11 @@ struct SortedAggregateFunction {
77184
77185
 
77185
77186
  // Apply the sort before delegating the chunks
77186
77187
  const auto agg_count = state->ordering.Count();
77187
- reordering.resize(agg_count);
77188
- state->ordering.Sort(order_bind->order_sense, order_bind->null_order, reordering.data());
77189
- state->arguments.Reorder(reordering.data());
77188
+ if (agg_count > 0) {
77189
+ reordering.resize(agg_count);
77190
+ state->ordering.Sort(order_bind->order_sense, order_bind->null_order, reordering.data());
77191
+ state->arguments.Reorder(reordering.data());
77192
+ }
77190
77193
 
77191
77194
  for (auto &chunk : state->arguments.Chunks()) {
77192
77195
  // These are all simple updates, so use it if available
package/src/duckdb.hpp CHANGED
@@ -10,8 +10,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
10
10
 
11
11
  #pragma once
12
12
  #define DUCKDB_AMALGAMATION 1
13
- #define DUCKDB_SOURCE_ID "a659125d2"
14
- #define DUCKDB_VERSION "0.3.1-dev397"
13
+ #define DUCKDB_SOURCE_ID "a45a86a8a"
14
+ #define DUCKDB_VERSION "0.3.1-dev399"
15
15
  //===----------------------------------------------------------------------===//
16
16
  // DuckDB
17
17
  //