duckdb 0.3.4-dev2.0 → 0.3.4-dev54.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.4-dev2.0",
4
+ "version": "0.3.4-dev54.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -80015,6 +80015,9 @@ void HistogramFun::RegisterFunction(BuiltinFunctions &set) {
80015
80015
  fun.AddFunction(GetHistogramFunction<int64_t>(LogicalType::TIMESTAMP_S));
80016
80016
  fun.AddFunction(GetHistogramFunction<int64_t>(LogicalType::TIMESTAMP_MS));
80017
80017
  fun.AddFunction(GetHistogramFunction<int64_t>(LogicalType::TIMESTAMP_NS));
80018
+ fun.AddFunction(GetHistogramFunction<int64_t>(LogicalType::TIME));
80019
+ fun.AddFunction(GetHistogramFunction<int64_t>(LogicalType::TIME_TZ));
80020
+ fun.AddFunction(GetHistogramFunction<int32_t>(LogicalType::DATE));
80018
80021
  set.AddFunction(fun);
80019
80022
  }
80020
80023
 
@@ -88274,10 +88277,7 @@ static void ListAggregateFunction(DataChunk &args, ExpressionState &state, Vecto
88274
88277
  continue;
88275
88278
  }
88276
88279
 
88277
- auto source_idx = child_data.sel->get_index(list_entry.offset);
88278
- idx_t child_idx = 0;
88279
-
88280
- while (child_idx < list_entry.length) {
88280
+ for (idx_t child_idx = 0; child_idx < list_entry.length; child_idx++) {
88281
88281
 
88282
88282
  // states vector is full, update
88283
88283
  if (states_idx == STANDARD_VECTOR_SIZE) {
@@ -88290,10 +88290,10 @@ static void ListAggregateFunction(DataChunk &args, ExpressionState &state, Vecto
88290
88290
  states_idx = 0;
88291
88291
  }
88292
88292
 
88293
- sel_vector.set_index(states_idx, source_idx + child_idx);
88293
+ auto source_idx = child_data.sel->get_index(list_entry.offset + child_idx);
88294
+ sel_vector.set_index(states_idx, source_idx);
88294
88295
  states_update[states_idx] = state_ptr;
88295
88296
  states_idx++;
88296
- child_idx++;
88297
88297
  }
88298
88298
  }
88299
88299
 
@@ -88330,7 +88330,7 @@ static unique_ptr<FunctionData> ListAggregateBind(ClientContext &context, Scalar
88330
88330
 
88331
88331
  // get the function name
88332
88332
  Value function_value = ExpressionExecutor::EvaluateScalar(*arguments[1]);
88333
- auto function_name = StringValue::Get(function_value);
88333
+ auto function_name = function_value.ToString();
88334
88334
 
88335
88335
  vector<LogicalType> types;
88336
88336
  types.push_back(list_child_type);
@@ -170302,6 +170302,10 @@ DataTable::DataTable(ClientContext &context, DataTable &parent, idx_t removed_co
170302
170302
  D_ASSERT(removed_column < column_definitions.size());
170303
170303
  column_definitions.erase(column_definitions.begin() + removed_column);
170304
170304
 
170305
+ for (idx_t i = 0; i < column_definitions.size(); i++) {
170306
+ column_definitions[i].oid = i;
170307
+ }
170308
+
170305
170309
  // alter the row_groups and remove the column from each of them
170306
170310
  this->row_groups = make_shared<SegmentTree>();
170307
170311
  auto current_row_group = (RowGroup *)parent.row_groups->GetRootSegment();
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 "7ce72b708"
15
- #define DUCKDB_VERSION "v0.3.4-dev2"
14
+ #define DUCKDB_SOURCE_ID "367343d9f"
15
+ #define DUCKDB_VERSION "v0.3.4-dev54"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //