duckdb 0.3.5-dev319.0 → 0.3.5-dev344.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.5-dev319.0",
4
+ "version": "0.3.5-dev344.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -50336,13 +50336,9 @@ static bool TimestampTzCastSwitch(Vector &source, Vector &result, idx_t count, s
50336
50336
  // timestamp with time zone to varchar
50337
50337
  VectorStringCast<timestamp_t, duckdb::StringCastTZ>(source, result, count);
50338
50338
  break;
50339
- case LogicalTypeId::DATE:
50340
- // timestamp with time zone to date
50341
- UnaryExecutor::Execute<timestamp_t, date_t, duckdb::Cast>(source, result, count);
50342
- break;
50343
- case LogicalTypeId::TIME:
50344
50339
  case LogicalTypeId::TIME_TZ:
50345
- // timestamp with time zone to time
50340
+ // timestamp with time zone to time with time zone.
50341
+ // TODO: set the offset to +00
50346
50342
  UnaryExecutor::Execute<timestamp_t, dtime_t, duckdb::Cast>(source, result, count);
50347
50343
  break;
50348
50344
  case LogicalTypeId::TIMESTAMP:
@@ -77817,6 +77813,9 @@ void AvgFun::RegisterFunction(BuiltinFunctions &set) {
77817
77813
  LogicalType::DOUBLE, LogicalType::DOUBLE, true));
77818
77814
  set.AddFunction(avg);
77819
77815
 
77816
+ avg.name = "mean";
77817
+ set.AddFunction(avg);
77818
+
77820
77819
  AggregateFunctionSet favg("favg");
77821
77820
  favg.AddFunction(AggregateFunction::UnaryAggregate<KahanAvgState, double, double, KahanAverageOperation>(
77822
77821
  LogicalType::DOUBLE, LogicalType::DOUBLE, true));
@@ -104432,7 +104431,7 @@ static unique_ptr<FunctionData> ReadCSVBind(ClientContext &context, TableFunctio
104432
104431
  if (val.type().id() != LogicalTypeId::VARCHAR) {
104433
104432
  throw BinderException("read_csv requires a type specification as string");
104434
104433
  }
104435
- return_types.emplace_back(TransformStringToLogicalTypeId(StringValue::Get(val)));
104434
+ return_types.emplace_back(TransformStringToLogicalType(StringValue::Get(val)));
104436
104435
  }
104437
104436
  if (names.empty()) {
104438
104437
  throw BinderException("read_csv requires at least a single column as input!");
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 "9fb041e97"
15
- #define DUCKDB_VERSION "v0.3.5-dev319"
14
+ #define DUCKDB_SOURCE_ID "49aec4865"
15
+ #define DUCKDB_VERSION "v0.3.5-dev344"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //
@@ -22808,8 +22808,8 @@ namespace duckdb {
22808
22808
 
22809
22809
  class BetweenExpression : public ParsedExpression {
22810
22810
  public:
22811
- BetweenExpression(unique_ptr<ParsedExpression> input, unique_ptr<ParsedExpression> lower,
22812
- unique_ptr<ParsedExpression> upper);
22811
+ DUCKDB_API BetweenExpression(unique_ptr<ParsedExpression> input, unique_ptr<ParsedExpression> lower,
22812
+ unique_ptr<ParsedExpression> upper);
22813
22813
 
22814
22814
  unique_ptr<ParsedExpression> input;
22815
22815
  unique_ptr<ParsedExpression> lower;