duckdb 0.3.3 → 0.3.4-dev18.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",
4
+ "version": "0.3.4-dev18.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -874,6 +874,9 @@ string IndexCatalogEntry::ToSQL() {
874
874
  if (sql.empty()) {
875
875
  throw InternalException("Cannot convert INDEX to SQL because it was not created with a SQL statement");
876
876
  }
877
+ if (sql[sql.size() - 1] != ';') {
878
+ sql += ";";
879
+ }
877
880
  return sql;
878
881
  }
879
882
 
@@ -80012,6 +80015,9 @@ void HistogramFun::RegisterFunction(BuiltinFunctions &set) {
80012
80015
  fun.AddFunction(GetHistogramFunction<int64_t>(LogicalType::TIMESTAMP_S));
80013
80016
  fun.AddFunction(GetHistogramFunction<int64_t>(LogicalType::TIMESTAMP_MS));
80014
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));
80015
80021
  set.AddFunction(fun);
80016
80022
  }
80017
80023
 
@@ -88271,10 +88277,7 @@ static void ListAggregateFunction(DataChunk &args, ExpressionState &state, Vecto
88271
88277
  continue;
88272
88278
  }
88273
88279
 
88274
- auto source_idx = child_data.sel->get_index(list_entry.offset);
88275
- idx_t child_idx = 0;
88276
-
88277
- while (child_idx < list_entry.length) {
88280
+ for (idx_t child_idx = 0; child_idx < list_entry.length; child_idx++) {
88278
88281
 
88279
88282
  // states vector is full, update
88280
88283
  if (states_idx == STANDARD_VECTOR_SIZE) {
@@ -88287,10 +88290,10 @@ static void ListAggregateFunction(DataChunk &args, ExpressionState &state, Vecto
88287
88290
  states_idx = 0;
88288
88291
  }
88289
88292
 
88290
- 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);
88291
88295
  states_update[states_idx] = state_ptr;
88292
88296
  states_idx++;
88293
- child_idx++;
88294
88297
  }
88295
88298
  }
88296
88299
 
@@ -88327,7 +88330,7 @@ static unique_ptr<FunctionData> ListAggregateBind(ClientContext &context, Scalar
88327
88330
 
88328
88331
  // get the function name
88329
88332
  Value function_value = ExpressionExecutor::EvaluateScalar(*arguments[1]);
88330
- auto function_name = StringValue::Get(function_value);
88333
+ auto function_name = function_value.ToString();
88331
88334
 
88332
88335
  vector<LogicalType> types;
88333
88336
  types.push_back(list_child_type);
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 "fe9ba8003"
15
- #define DUCKDB_VERSION "v0.3.3"
14
+ #define DUCKDB_SOURCE_ID "344a74233"
15
+ #define DUCKDB_VERSION "v0.3.4-dev18"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //