duckdb 0.3.2-dev858.0 → 0.3.2-dev874.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-dev858.0",
4
+ "version": "0.3.2-dev874.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -21031,31 +21031,6 @@ duckdb::string_t StringCast::Operation(duckdb::string_t input, Vector &result) {
21031
21031
  return StringVector::AddStringOrBlob(result, input);
21032
21032
  }
21033
21033
 
21034
- template <>
21035
- string_t StringCastTZ::Operation(date_t input, Vector &vector) {
21036
- int32_t date[3];
21037
- Date::Convert(input, date[0], date[1], date[2]);
21038
-
21039
- // format for datetz is DATE+00
21040
- idx_t year_length;
21041
- bool add_bc;
21042
- const idx_t date_length = DateToStringCast::Length(date, year_length, add_bc);
21043
- const idx_t length = date_length + 3;
21044
-
21045
- string_t result = StringVector::EmptyString(vector, length);
21046
- auto data = result.GetDataWriteable();
21047
-
21048
- idx_t pos = 0;
21049
- DateToStringCast::Format(data + pos, date, year_length, add_bc);
21050
- pos += date_length;
21051
- data[pos++] = '+';
21052
- data[pos++] = '0';
21053
- data[pos++] = '0';
21054
-
21055
- result.Finalize();
21056
- return result;
21057
- }
21058
-
21059
21034
  template <>
21060
21035
  string_t StringCastTZ::Operation(dtime_t input, Vector &vector) {
21061
21036
  int32_t time[4];
@@ -30387,7 +30362,6 @@ void SetArrowChild(DuckDBArrowArrayChildHolder &child_holder, const LogicalType
30387
30362
  case LogicalTypeId::TIMESTAMP_NS:
30388
30363
  case LogicalTypeId::TIMESTAMP_SEC:
30389
30364
  case LogicalTypeId::TIME:
30390
- case LogicalTypeId::DATE_TZ:
30391
30365
  case LogicalTypeId::TIMESTAMP_TZ:
30392
30366
  case LogicalTypeId::TIME_TZ:
30393
30367
  child_holder.vector = make_unique<Vector>(data);
@@ -32484,7 +32458,7 @@ interval_parse_time : {
32484
32458
  // parse the remainder of the time as a Time type
32485
32459
  dtime_t time;
32486
32460
  idx_t pos;
32487
- if (!Time::TryConvertTime(str + start_pos, len, pos, time)) {
32461
+ if (!Time::TryConvertTime(str + start_pos, len - start_pos, pos, time)) {
32488
32462
  return false;
32489
32463
  }
32490
32464
  result.micros += time.micros;
@@ -34083,8 +34057,6 @@ Value Value::MinimumValue(const LogicalType &type) {
34083
34057
  return MinimumValue(LogicalType::TIMESTAMP).CastAs(LogicalType::TIMESTAMP_MS);
34084
34058
  case LogicalTypeId::TIMESTAMP_NS:
34085
34059
  return Value::TIMESTAMPNS(timestamp_t(NumericLimits<int64_t>::Minimum()));
34086
- case LogicalTypeId::DATE_TZ:
34087
- return Value::DATETZ(date_t(NumericLimits<int32_t>::Minimum()));
34088
34060
  case LogicalTypeId::TIME_TZ:
34089
34061
  return Value::TIMETZ(dtime_t(0));
34090
34062
  case LogicalTypeId::TIMESTAMP_TZ:
@@ -34154,8 +34126,6 @@ Value Value::MaximumValue(const LogicalType &type) {
34154
34126
  return Value::TIMESTAMPNS(timestamp_t(NumericLimits<int64_t>::Maximum()));
34155
34127
  case LogicalTypeId::TIMESTAMP_SEC:
34156
34128
  return MaximumValue(LogicalType::TIMESTAMP).CastAs(LogicalType::TIMESTAMP_S);
34157
- case LogicalTypeId::DATE_TZ:
34158
- return Value::DATETZ(date_t(NumericLimits<int32_t>::Maximum()));
34159
34129
  case LogicalTypeId::TIME_TZ:
34160
34130
  return Value::TIMETZ(dtime_t(Interval::SECS_PER_DAY * Interval::MICROS_PER_SEC - 1));
34161
34131
  case LogicalTypeId::TIMESTAMP_TZ:
@@ -34371,13 +34341,6 @@ Value Value::DATE(date_t value) {
34371
34341
  return result;
34372
34342
  }
34373
34343
 
34374
- Value Value::DATETZ(date_t value) {
34375
- Value result(LogicalType::DATE_TZ);
34376
- result.value_.date = value;
34377
- result.is_null = false;
34378
- return result;
34379
- }
34380
-
34381
34344
  Value Value::DATE(int32_t year, int32_t month, int32_t day) {
34382
34345
  return Value::DATE(Date::FromDate(year, month, day));
34383
34346
  }
@@ -34678,7 +34641,6 @@ T Value::GetValueInternal() const {
34678
34641
  case LogicalTypeId::UUID:
34679
34642
  return Cast::Operation<hugeint_t, T>(value_.hugeint);
34680
34643
  case LogicalTypeId::DATE:
34681
- case LogicalTypeId::DATE_TZ:
34682
34644
  return Cast::Operation<date_t, T>(value_.date);
34683
34645
  case LogicalTypeId::TIME:
34684
34646
  case LogicalTypeId::TIME_TZ:
@@ -34860,8 +34822,6 @@ Value Value::Numeric(const LogicalType &type, int64_t value) {
34860
34822
  return Value::TIMESTAMPMS(timestamp_t(value));
34861
34823
  case LogicalTypeId::TIMESTAMP_SEC:
34862
34824
  return Value::TIMESTAMPSEC(timestamp_t(value));
34863
- case LogicalTypeId::DATE_TZ:
34864
- return Value::DATETZ(date_t(value));
34865
34825
  case LogicalTypeId::TIME_TZ:
34866
34826
  return Value::TIMETZ(dtime_t(value));
34867
34827
  case LogicalTypeId::TIMESTAMP_TZ:
@@ -35041,8 +35001,6 @@ string Value::ToString() const {
35041
35001
  return Time::ToString(value_.time);
35042
35002
  case LogicalTypeId::TIMESTAMP:
35043
35003
  return Timestamp::ToString(value_.timestamp);
35044
- case LogicalTypeId::DATE_TZ:
35045
- return Date::ToString(value_.date) + Time::ToUTCOffset(0, 0);
35046
35004
  case LogicalTypeId::TIME_TZ:
35047
35005
  return Time::ToString(value_.time) + Time::ToUTCOffset(0, 0);
35048
35006
  case LogicalTypeId::TIMESTAMP_TZ:
@@ -35721,7 +35679,6 @@ void Vector::SetValue(idx_t index, const Value &val) {
35721
35679
  ((int16_t *)data)[index] = val.value_.smallint;
35722
35680
  break;
35723
35681
  case LogicalTypeId::DATE:
35724
- case LogicalTypeId::DATE_TZ:
35725
35682
  case LogicalTypeId::INTEGER:
35726
35683
  ((int32_t *)data)[index] = val.value_.integer;
35727
35684
  break;
@@ -35876,8 +35833,6 @@ Value Vector::GetValue(idx_t index) const {
35876
35833
  return Value::INTEGER(((int32_t *)data)[index]);
35877
35834
  case LogicalTypeId::DATE:
35878
35835
  return Value::DATE(((date_t *)data)[index]);
35879
- case LogicalTypeId::DATE_TZ:
35880
- return Value::DATETZ(((date_t *)data)[index]);
35881
35836
  case LogicalTypeId::TIME:
35882
35837
  return Value::TIME(((dtime_t *)data)[index]);
35883
35838
  case LogicalTypeId::TIME_TZ:
@@ -36913,7 +36868,6 @@ vector<idx_t> ListVector::Search(Vector &list, Value &key, idx_t row) {
36913
36868
  entry.length);
36914
36869
  break;
36915
36870
  case LogicalTypeId::DATE:
36916
- case LogicalTypeId::DATE_TZ:
36917
36871
  ::duckdb::TemplatedSearchInMap<date_t>(list, key.value_.date, offsets, key.is_null, entry.offset, entry.length);
36918
36872
  break;
36919
36873
  case LogicalTypeId::TIME:
@@ -37293,7 +37247,6 @@ PhysicalType LogicalType::GetInternalType() {
37293
37247
  return PhysicalType::UINT16;
37294
37248
  case LogicalTypeId::SQLNULL:
37295
37249
  case LogicalTypeId::DATE:
37296
- case LogicalTypeId::DATE_TZ:
37297
37250
  case LogicalTypeId::INTEGER:
37298
37251
  return PhysicalType::INT32;
37299
37252
  case LogicalTypeId::UINTEGER:
@@ -37400,7 +37353,6 @@ constexpr const LogicalTypeId LogicalType::TIMESTAMP_S;
37400
37353
 
37401
37354
  constexpr const LogicalTypeId LogicalType::TIME;
37402
37355
 
37403
- constexpr const LogicalTypeId LogicalType::DATE_TZ;
37404
37356
  constexpr const LogicalTypeId LogicalType::TIME_TZ;
37405
37357
  constexpr const LogicalTypeId LogicalType::TIMESTAMP_TZ;
37406
37358
 
@@ -37435,13 +37387,13 @@ const vector<LogicalType> LogicalType::Integral() {
37435
37387
 
37436
37388
  const vector<LogicalType> LogicalType::AllTypes() {
37437
37389
  vector<LogicalType> types = {
37438
- LogicalType::BOOLEAN, LogicalType::TINYINT, LogicalType::SMALLINT, LogicalType::INTEGER,
37439
- LogicalType::BIGINT, LogicalType::DATE, LogicalType::TIMESTAMP, LogicalType::DOUBLE,
37440
- LogicalType::FLOAT, LogicalType::VARCHAR, LogicalType::BLOB, LogicalType::INTERVAL,
37441
- LogicalType::HUGEINT, LogicalTypeId::DECIMAL, LogicalType::UTINYINT, LogicalType::USMALLINT,
37442
- LogicalType::UINTEGER, LogicalType::UBIGINT, LogicalType::TIME, LogicalTypeId::LIST,
37443
- LogicalTypeId::STRUCT, LogicalType::DATE_TZ, LogicalType::TIME_TZ, LogicalType::TIMESTAMP_TZ,
37444
- LogicalTypeId::MAP, LogicalType::UUID};
37390
+ LogicalType::BOOLEAN, LogicalType::TINYINT, LogicalType::SMALLINT, LogicalType::INTEGER,
37391
+ LogicalType::BIGINT, LogicalType::DATE, LogicalType::TIMESTAMP, LogicalType::DOUBLE,
37392
+ LogicalType::FLOAT, LogicalType::VARCHAR, LogicalType::BLOB, LogicalType::INTERVAL,
37393
+ LogicalType::HUGEINT, LogicalTypeId::DECIMAL, LogicalType::UTINYINT, LogicalType::USMALLINT,
37394
+ LogicalType::UINTEGER, LogicalType::UBIGINT, LogicalType::TIME, LogicalTypeId::LIST,
37395
+ LogicalTypeId::STRUCT, LogicalType::TIME_TZ, LogicalType::TIMESTAMP_TZ, LogicalTypeId::MAP,
37396
+ LogicalType::UUID};
37445
37397
  return types;
37446
37398
  }
37447
37399
 
@@ -37628,8 +37580,6 @@ string LogicalTypeIdToString(LogicalTypeId id) {
37628
37580
  return "TIMESTAMP WITH TIME ZONE";
37629
37581
  case LogicalTypeId::TIME_TZ:
37630
37582
  return "TIME WITH TIME ZONE";
37631
- case LogicalTypeId::DATE_TZ:
37632
- return "DATE WITH TIME ZONE";
37633
37583
  case LogicalTypeId::FLOAT:
37634
37584
  return "FLOAT";
37635
37585
  case LogicalTypeId::DOUBLE:
@@ -37791,8 +37741,6 @@ LogicalTypeId TransformStringToLogicalType(const string &str) {
37791
37741
  return LogicalTypeId::TIMESTAMP_TZ;
37792
37742
  } else if (lower_str == "timetz") {
37793
37743
  return LogicalTypeId::TIME_TZ;
37794
- } else if (lower_str == "datetz") {
37795
- return LogicalTypeId::DATE_TZ;
37796
37744
  } else {
37797
37745
  // This is a User Type, at this point we don't know if its one of the User Defined Types or an error
37798
37746
  // It is checked in the binder
@@ -41285,7 +41233,6 @@ static bool StringCastSwitch(Vector &source, Vector &result, idx_t count, bool s
41285
41233
  // now switch on the result type
41286
41234
  switch (result.GetType().id()) {
41287
41235
  case LogicalTypeId::DATE:
41288
- case LogicalTypeId::DATE_TZ:
41289
41236
  return VectorTryCastErrorLoop<string_t, date_t, duckdb::TryCastErrorMessage>(source, result, count, strict,
41290
41237
  error_message);
41291
41238
  case LogicalTypeId::TIME:
@@ -41329,31 +41276,6 @@ static bool DateCastSwitch(Vector &source, Vector &result, idx_t count, string *
41329
41276
  case LogicalTypeId::TIMESTAMP_TZ:
41330
41277
  // date to timestamp
41331
41278
  return VectorTryCastLoop<date_t, timestamp_t, duckdb::TryCast>(source, result, count, error_message);
41332
- case LogicalTypeId::DATE_TZ:
41333
- // date to date with time zone
41334
- UnaryExecutor::Execute<date_t, date_t, duckdb::Cast>(source, result, count);
41335
- return true;
41336
- default:
41337
- return TryVectorNullCast(source, result, count, error_message);
41338
- }
41339
- }
41340
-
41341
- static bool DateTzCastSwitch(Vector &source, Vector &result, idx_t count, string *error_message) {
41342
- // now switch on the result type
41343
- switch (result.GetType().id()) {
41344
- case LogicalTypeId::VARCHAR:
41345
- // date with time zone to varchar
41346
- VectorStringCast<date_t, duckdb::StringCastTZ>(source, result, count);
41347
- return true;
41348
- case LogicalTypeId::TIMESTAMP:
41349
- case LogicalTypeId::TIMESTAMP_TZ:
41350
- // date with time zone to timestamp
41351
- return VectorTryCastLoop<date_t, timestamp_t, duckdb::TryCast>(source, result, count, error_message);
41352
- case LogicalTypeId::DATE:
41353
- case LogicalTypeId::DATE_TZ:
41354
- // date with time zone to date
41355
- UnaryExecutor::Execute<date_t, date_t, duckdb::Cast>(source, result, count);
41356
- return true;
41357
41279
  default:
41358
41280
  return TryVectorNullCast(source, result, count, error_message);
41359
41281
  }
@@ -41399,7 +41321,6 @@ static bool TimestampCastSwitch(Vector &source, Vector &result, idx_t count, str
41399
41321
  VectorStringCast<timestamp_t, duckdb::StringCast>(source, result, count);
41400
41322
  break;
41401
41323
  case LogicalTypeId::DATE:
41402
- case LogicalTypeId::DATE_TZ:
41403
41324
  // timestamp to date
41404
41325
  UnaryExecutor::Execute<timestamp_t, date_t, duckdb::Cast>(source, result, count);
41405
41326
  break;
@@ -41438,7 +41359,6 @@ static bool TimestampTzCastSwitch(Vector &source, Vector &result, idx_t count, s
41438
41359
  VectorStringCast<timestamp_t, duckdb::StringCastTZ>(source, result, count);
41439
41360
  break;
41440
41361
  case LogicalTypeId::DATE:
41441
- case LogicalTypeId::DATE_TZ:
41442
41362
  // timestamp with time zone to date
41443
41363
  UnaryExecutor::Execute<timestamp_t, date_t, duckdb::Cast>(source, result, count);
41444
41364
  break;
@@ -41811,8 +41731,6 @@ bool VectorOperations::TryCast(Vector &source, Vector &result, idx_t count, stri
41811
41731
  return NumericCastSwitch<double>(source, result, count, error_message);
41812
41732
  case LogicalTypeId::DATE:
41813
41733
  return DateCastSwitch(source, result, count, error_message);
41814
- case LogicalTypeId::DATE_TZ:
41815
- return DateTzCastSwitch(source, result, count, error_message);
41816
41734
  case LogicalTypeId::TIME:
41817
41735
  return TimeCastSwitch(source, result, count, error_message);
41818
41736
  case LogicalTypeId::TIME_TZ:
@@ -67329,9 +67247,6 @@ AggregateFunction GetArgMinMaxFunctionArg2(LogicalTypeId arg_2, const LogicalTyp
67329
67247
  case LogicalTypeId::TIMESTAMP:
67330
67248
  return AggregateFunction::BinaryAggregate<ArgMinMaxState<T, timestamp_t>, T, timestamp_t, T, OP>(
67331
67249
  arg, LogicalType::TIMESTAMP, arg);
67332
- case LogicalTypeId::DATE_TZ:
67333
- return AggregateFunction::BinaryAggregate<ArgMinMaxState<T, date_t>, T, date_t, T, OP>(
67334
- arg, LogicalType::DATE_TZ, arg);
67335
67250
  case LogicalTypeId::TIMESTAMP_TZ:
67336
67251
  return AggregateFunction::BinaryAggregate<ArgMinMaxState<T, timestamp_t>, T, timestamp_t, T, OP>(
67337
67252
  arg, LogicalType::TIMESTAMP_TZ, arg);
@@ -67353,7 +67268,6 @@ void GetArgMinMaxFunction(LogicalTypeId arg_1, AggregateFunctionSet &fun) {
67353
67268
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, int32_t>(LogicalTypeId::VARCHAR, LogicalType::INTEGER));
67354
67269
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, int32_t>(LogicalTypeId::DATE, LogicalType::INTEGER));
67355
67270
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, int32_t>(LogicalTypeId::TIMESTAMP, LogicalType::INTEGER));
67356
- fun.AddFunction(GetArgMinMaxFunctionArg2<OP, int32_t>(LogicalTypeId::DATE_TZ, LogicalType::INTEGER));
67357
67271
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, int32_t>(LogicalTypeId::TIMESTAMP_TZ, LogicalType::INTEGER));
67358
67272
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, int32_t>(LogicalTypeId::BLOB, LogicalType::INTEGER));
67359
67273
  break;
@@ -67364,7 +67278,6 @@ void GetArgMinMaxFunction(LogicalTypeId arg_1, AggregateFunctionSet &fun) {
67364
67278
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, int64_t>(LogicalTypeId::VARCHAR, LogicalType::BIGINT));
67365
67279
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, int64_t>(LogicalTypeId::DATE, LogicalType::BIGINT));
67366
67280
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, int64_t>(LogicalTypeId::TIMESTAMP, LogicalType::BIGINT));
67367
- fun.AddFunction(GetArgMinMaxFunctionArg2<OP, int64_t>(LogicalTypeId::DATE_TZ, LogicalType::BIGINT));
67368
67281
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, int64_t>(LogicalTypeId::TIMESTAMP_TZ, LogicalType::BIGINT));
67369
67282
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, int64_t>(LogicalTypeId::BLOB, LogicalType::BIGINT));
67370
67283
  break;
@@ -67375,7 +67288,6 @@ void GetArgMinMaxFunction(LogicalTypeId arg_1, AggregateFunctionSet &fun) {
67375
67288
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, double>(LogicalTypeId::VARCHAR, LogicalType::DOUBLE));
67376
67289
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, double>(LogicalTypeId::DATE, LogicalType::DOUBLE));
67377
67290
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, double>(LogicalTypeId::TIMESTAMP, LogicalType::DOUBLE));
67378
- fun.AddFunction(GetArgMinMaxFunctionArg2<OP, double>(LogicalTypeId::DATE_TZ, LogicalType::DOUBLE));
67379
67291
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, double>(LogicalTypeId::TIMESTAMP_TZ, LogicalType::DOUBLE));
67380
67292
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, double>(LogicalTypeId::BLOB, LogicalType::DOUBLE));
67381
67293
  break;
@@ -67386,7 +67298,6 @@ void GetArgMinMaxFunction(LogicalTypeId arg_1, AggregateFunctionSet &fun) {
67386
67298
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, string_t>(LogicalTypeId::VARCHAR, LogicalType::VARCHAR));
67387
67299
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, string_t>(LogicalTypeId::DATE, LogicalType::VARCHAR));
67388
67300
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, string_t>(LogicalTypeId::TIMESTAMP, LogicalType::VARCHAR));
67389
- fun.AddFunction(GetArgMinMaxFunctionArg2<OP, string_t>(LogicalTypeId::DATE_TZ, LogicalType::VARCHAR));
67390
67301
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, string_t>(LogicalTypeId::TIMESTAMP_TZ, LogicalType::VARCHAR));
67391
67302
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, string_t>(LogicalTypeId::BLOB, LogicalType::VARCHAR));
67392
67303
  break;
@@ -67397,21 +67308,9 @@ void GetArgMinMaxFunction(LogicalTypeId arg_1, AggregateFunctionSet &fun) {
67397
67308
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, date_t>(LogicalTypeId::VARCHAR, LogicalType::DATE));
67398
67309
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, date_t>(LogicalTypeId::DATE, LogicalType::DATE));
67399
67310
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, date_t>(LogicalTypeId::TIMESTAMP, LogicalType::DATE));
67400
- fun.AddFunction(GetArgMinMaxFunctionArg2<OP, date_t>(LogicalTypeId::DATE_TZ, LogicalType::DATE));
67401
67311
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, date_t>(LogicalTypeId::TIMESTAMP_TZ, LogicalType::DATE));
67402
67312
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, date_t>(LogicalTypeId::BLOB, LogicalType::DATE));
67403
67313
  break;
67404
- case LogicalTypeId::DATE_TZ:
67405
- fun.AddFunction(GetArgMinMaxFunctionArg2<OP, date_t>(LogicalTypeId::INTEGER, LogicalType::DATE_TZ));
67406
- fun.AddFunction(GetArgMinMaxFunctionArg2<OP, date_t>(LogicalTypeId::BIGINT, LogicalType::DATE_TZ));
67407
- fun.AddFunction(GetArgMinMaxFunctionArg2<OP, date_t>(LogicalTypeId::DOUBLE, LogicalType::DATE_TZ));
67408
- fun.AddFunction(GetArgMinMaxFunctionArg2<OP, date_t>(LogicalTypeId::VARCHAR, LogicalType::DATE_TZ));
67409
- fun.AddFunction(GetArgMinMaxFunctionArg2<OP, date_t>(LogicalTypeId::DATE, LogicalType::DATE_TZ));
67410
- fun.AddFunction(GetArgMinMaxFunctionArg2<OP, date_t>(LogicalTypeId::TIMESTAMP, LogicalType::DATE_TZ));
67411
- fun.AddFunction(GetArgMinMaxFunctionArg2<OP, date_t>(LogicalTypeId::DATE_TZ, LogicalType::DATE_TZ));
67412
- fun.AddFunction(GetArgMinMaxFunctionArg2<OP, date_t>(LogicalTypeId::TIMESTAMP_TZ, LogicalType::DATE_TZ));
67413
- fun.AddFunction(GetArgMinMaxFunctionArg2<OP, date_t>(LogicalTypeId::BLOB, LogicalType::DATE));
67414
- break;
67415
67314
  case LogicalTypeId::TIMESTAMP:
67416
67315
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, timestamp_t>(LogicalTypeId::INTEGER, LogicalType::TIMESTAMP));
67417
67316
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, timestamp_t>(LogicalTypeId::BIGINT, LogicalType::TIMESTAMP));
@@ -67419,7 +67318,6 @@ void GetArgMinMaxFunction(LogicalTypeId arg_1, AggregateFunctionSet &fun) {
67419
67318
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, timestamp_t>(LogicalTypeId::VARCHAR, LogicalType::TIMESTAMP));
67420
67319
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, timestamp_t>(LogicalTypeId::DATE, LogicalType::TIMESTAMP));
67421
67320
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, timestamp_t>(LogicalTypeId::TIMESTAMP, LogicalType::TIMESTAMP));
67422
- fun.AddFunction(GetArgMinMaxFunctionArg2<OP, timestamp_t>(LogicalTypeId::DATE_TZ, LogicalType::TIMESTAMP));
67423
67321
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, timestamp_t>(LogicalTypeId::TIMESTAMP_TZ, LogicalType::TIMESTAMP));
67424
67322
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, timestamp_t>(LogicalTypeId::BLOB, LogicalType::TIMESTAMP));
67425
67323
  break;
@@ -67430,7 +67328,6 @@ void GetArgMinMaxFunction(LogicalTypeId arg_1, AggregateFunctionSet &fun) {
67430
67328
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, timestamp_t>(LogicalTypeId::VARCHAR, LogicalType::TIMESTAMP_TZ));
67431
67329
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, timestamp_t>(LogicalTypeId::DATE, LogicalType::TIMESTAMP_TZ));
67432
67330
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, timestamp_t>(LogicalTypeId::TIMESTAMP, LogicalType::TIMESTAMP_TZ));
67433
- fun.AddFunction(GetArgMinMaxFunctionArg2<OP, timestamp_t>(LogicalTypeId::DATE_TZ, LogicalType::TIMESTAMP_TZ));
67434
67331
  fun.AddFunction(
67435
67332
  GetArgMinMaxFunctionArg2<OP, timestamp_t>(LogicalTypeId::TIMESTAMP_TZ, LogicalType::TIMESTAMP_TZ));
67436
67333
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, timestamp_t>(LogicalTypeId::BLOB, LogicalType::TIMESTAMP_TZ));
@@ -67442,7 +67339,6 @@ void GetArgMinMaxFunction(LogicalTypeId arg_1, AggregateFunctionSet &fun) {
67442
67339
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, string_t>(LogicalTypeId::VARCHAR, LogicalType::BLOB));
67443
67340
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, string_t>(LogicalTypeId::DATE, LogicalType::BLOB));
67444
67341
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, string_t>(LogicalTypeId::TIMESTAMP, LogicalType::BLOB));
67445
- fun.AddFunction(GetArgMinMaxFunctionArg2<OP, string_t>(LogicalTypeId::DATE_TZ, LogicalType::BLOB));
67446
67342
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, string_t>(LogicalTypeId::TIMESTAMP_TZ, LogicalType::BLOB));
67447
67343
  fun.AddFunction(GetArgMinMaxFunctionArg2<OP, string_t>(LogicalTypeId::BLOB, LogicalType::BLOB));
67448
67344
  break;
@@ -67458,7 +67354,6 @@ void ArgMinFun::RegisterFunction(BuiltinFunctions &set) {
67458
67354
  GetArgMinMaxFunction<ArgMinOperation>(LogicalTypeId::VARCHAR, fun);
67459
67355
  GetArgMinMaxFunction<ArgMinOperation>(LogicalTypeId::DATE, fun);
67460
67356
  GetArgMinMaxFunction<ArgMinOperation>(LogicalTypeId::TIMESTAMP, fun);
67461
- GetArgMinMaxFunction<ArgMinOperation>(LogicalTypeId::DATE_TZ, fun);
67462
67357
  GetArgMinMaxFunction<ArgMinOperation>(LogicalTypeId::TIMESTAMP_TZ, fun);
67463
67358
  GetArgMinMaxFunction<ArgMinOperation>(LogicalTypeId::BLOB, fun);
67464
67359
  set.AddFunction(fun);
@@ -67480,7 +67375,6 @@ void ArgMaxFun::RegisterFunction(BuiltinFunctions &set) {
67480
67375
  GetArgMinMaxFunction<ArgMaxOperation>(LogicalTypeId::VARCHAR, fun);
67481
67376
  GetArgMinMaxFunction<ArgMaxOperation>(LogicalTypeId::DATE, fun);
67482
67377
  GetArgMinMaxFunction<ArgMaxOperation>(LogicalTypeId::TIMESTAMP, fun);
67483
- GetArgMinMaxFunction<ArgMaxOperation>(LogicalTypeId::DATE_TZ, fun);
67484
67378
  GetArgMinMaxFunction<ArgMaxOperation>(LogicalTypeId::TIMESTAMP_TZ, fun);
67485
67379
  GetArgMinMaxFunction<ArgMaxOperation>(LogicalTypeId::BLOB, fun);
67486
67380
  set.AddFunction(fun);
@@ -68341,7 +68235,6 @@ static AggregateFunction GetFirstFunction(const LogicalType &type) {
68341
68235
  return GetFirstAggregateTemplated<int16_t, LAST>(type);
68342
68236
  case LogicalTypeId::INTEGER:
68343
68237
  case LogicalTypeId::DATE:
68344
- case LogicalTypeId::DATE_TZ:
68345
68238
  return GetFirstAggregateTemplated<int32_t, LAST>(type);
68346
68239
  case LogicalTypeId::BIGINT:
68347
68240
  case LogicalTypeId::TIME:
@@ -68549,7 +68442,6 @@ static AggregateFunction GetUnaryAggregate(LogicalType type) {
68549
68442
  case LogicalTypeId::SMALLINT:
68550
68443
  return AggregateFunction::UnaryAggregate<MinMaxState<int16_t>, int16_t, int16_t, OP>(type, type);
68551
68444
  case LogicalTypeId::DATE:
68552
- case LogicalTypeId::DATE_TZ:
68553
68445
  case LogicalTypeId::INTEGER:
68554
68446
  return AggregateFunction::UnaryAggregate<MinMaxState<int32_t>, int32_t, int32_t, OP>(type, type);
68555
68447
  case LogicalTypeId::TIMESTAMP:
@@ -70764,9 +70656,8 @@ unique_ptr<FunctionData> BindModeDecimal(ClientContext &context, AggregateFuncti
70764
70656
  }
70765
70657
 
70766
70658
  void ModeFun::RegisterFunction(BuiltinFunctions &set) {
70767
- const vector<LogicalType> TEMPORAL = {LogicalType::DATE, LogicalType::TIMESTAMP, LogicalType::TIME,
70768
- LogicalType::DATE_TZ, LogicalType::TIMESTAMP_TZ, LogicalType::TIME_TZ,
70769
- LogicalType::INTERVAL};
70659
+ const vector<LogicalType> TEMPORAL = {LogicalType::DATE, LogicalType::TIMESTAMP, LogicalType::TIME,
70660
+ LogicalType::TIMESTAMP_TZ, LogicalType::TIME_TZ, LogicalType::INTERVAL};
70770
70661
 
70771
70662
  AggregateFunctionSet mode("mode");
70772
70663
  mode.AddFunction(AggregateFunction({LogicalTypeId::DECIMAL}, LogicalTypeId::DECIMAL, nullptr, nullptr, nullptr,
@@ -71386,7 +71277,6 @@ AggregateFunction GetDiscreteQuantileAggregateFunction(const LogicalType &type)
71386
71277
  break;
71387
71278
 
71388
71279
  case LogicalTypeId::DATE:
71389
- case LogicalTypeId::DATE_TZ:
71390
71280
  return GetTypedDiscreteQuantileAggregateFunction<int32_t, int32_t>(type);
71391
71281
  case LogicalTypeId::TIMESTAMP:
71392
71282
  case LogicalTypeId::TIMESTAMP_TZ:
@@ -71578,7 +71468,6 @@ AggregateFunction GetDiscreteQuantileListAggregateFunction(const LogicalType &ty
71578
71468
  break;
71579
71469
 
71580
71470
  case LogicalTypeId::DATE:
71581
- case LogicalTypeId::DATE_TZ:
71582
71471
  return GetTypedDiscreteQuantileListAggregateFunction<date_t, date_t>(type);
71583
71472
  case LogicalTypeId::TIMESTAMP:
71584
71473
  case LogicalTypeId::TIMESTAMP_TZ:
@@ -72009,8 +71898,6 @@ unique_ptr<FunctionData> BindContinuousQuantileDecimalList(ClientContext &contex
72009
71898
 
72010
71899
  static bool CanInterpolate(const LogicalType &type) {
72011
71900
  switch (type.id()) {
72012
- case LogicalTypeId::DATE_TZ:
72013
- // DATE_TZ cannot be interpolated without a time zone
72014
71901
  case LogicalTypeId::INTERVAL:
72015
71902
  case LogicalTypeId::VARCHAR:
72016
71903
  return false;
@@ -72061,11 +71948,11 @@ AggregateFunction GetContinuousQuantileListAggregate(const LogicalType &type) {
72061
71948
  }
72062
71949
 
72063
71950
  void QuantileFun::RegisterFunction(BuiltinFunctions &set) {
72064
- const vector<LogicalType> QUANTILES = {LogicalType::TINYINT, LogicalType::SMALLINT, LogicalType::INTEGER,
72065
- LogicalType::BIGINT, LogicalType::HUGEINT, LogicalType::FLOAT,
72066
- LogicalType::DOUBLE, LogicalType::DATE, LogicalType::TIMESTAMP,
72067
- LogicalType::TIME, LogicalType::DATE_TZ, LogicalType::TIMESTAMP_TZ,
72068
- LogicalType::TIME_TZ, LogicalType::INTERVAL, LogicalType::VARCHAR};
71951
+ const vector<LogicalType> QUANTILES = {LogicalType::TINYINT, LogicalType::SMALLINT, LogicalType::INTEGER,
71952
+ LogicalType::BIGINT, LogicalType::HUGEINT, LogicalType::FLOAT,
71953
+ LogicalType::DOUBLE, LogicalType::DATE, LogicalType::TIMESTAMP,
71954
+ LogicalType::TIME, LogicalType::TIMESTAMP_TZ, LogicalType::TIME_TZ,
71955
+ LogicalType::INTERVAL, LogicalType::VARCHAR};
72069
71956
 
72070
71957
  AggregateFunctionSet median("median");
72071
71958
  median.AddFunction(AggregateFunction({LogicalTypeId::DECIMAL}, LogicalTypeId::DECIMAL, nullptr, nullptr, nullptr,
@@ -79670,7 +79557,6 @@ static void RegisterLeastGreatest(BuiltinFunctions &set, const string &fun_name)
79670
79557
 
79671
79558
  fun_set.AddFunction(GetLeastGreatestFunction<timestamp_t, OP>(LogicalType::TIMESTAMP_TZ));
79672
79559
  fun_set.AddFunction(GetLeastGreatestFunction<time_t, OP>(LogicalType::TIME_TZ));
79673
- fun_set.AddFunction(GetLeastGreatestFunction<date_t, OP>(LogicalType::DATE_TZ));
79674
79560
 
79675
79561
  set.AddFunction(fun_set);
79676
79562
  }
@@ -80239,7 +80125,6 @@ static void ExecuteListExtractInternal(const idx_t count, VectorData &list, Vect
80239
80125
  ListExtractTemplate<double>(count, list, offsets, child_vector, list_size, result);
80240
80126
  break;
80241
80127
  case LogicalTypeId::DATE:
80242
- case LogicalTypeId::DATE_TZ:
80243
80128
  ListExtractTemplate<date_t>(count, list, offsets, child_vector, list_size, result);
80244
80129
  break;
80245
80130
  case LogicalTypeId::TIME:
@@ -82748,7 +82633,7 @@ ScalarFunction AddFun::GetFunction(const LogicalType &left_type, const LogicalTy
82748
82633
  }
82749
82634
  break;
82750
82635
  case LogicalTypeId::INTEGER:
82751
- if (right_type.id() == LogicalTypeId::DATE || right_type.id() == LogicalTypeId::DATE_TZ) {
82636
+ if (right_type.id() == LogicalTypeId::DATE) {
82752
82637
  return ScalarFunction("+", {left_type, right_type}, right_type,
82753
82638
  ScalarFunction::BinaryFunction<int32_t, date_t, date_t, AddOperator>);
82754
82639
  }
@@ -82780,12 +82665,6 @@ ScalarFunction AddFun::GetFunction(const LogicalType &left_type, const LogicalTy
82780
82665
  ScalarFunction::BinaryFunction<timestamp_t, interval_t, timestamp_t, AddOperator>);
82781
82666
  }
82782
82667
  break;
82783
- case LogicalTypeId::DATE_TZ:
82784
- if (right_type.id() == LogicalTypeId::INTEGER) {
82785
- return ScalarFunction("+", {left_type, right_type}, left_type,
82786
- ScalarFunction::BinaryFunction<date_t, int32_t, date_t, AddOperator>);
82787
- }
82788
- break;
82789
82668
  default:
82790
82669
  break;
82791
82670
  }
@@ -82806,8 +82685,6 @@ void AddFun::RegisterFunction(BuiltinFunctions &set) {
82806
82685
  // we can add integers to dates
82807
82686
  functions.AddFunction(GetFunction(LogicalType::DATE, LogicalType::INTEGER));
82808
82687
  functions.AddFunction(GetFunction(LogicalType::INTEGER, LogicalType::DATE));
82809
- functions.AddFunction(GetFunction(LogicalType::DATE_TZ, LogicalType::INTEGER));
82810
- functions.AddFunction(GetFunction(LogicalType::INTEGER, LogicalType::DATE_TZ));
82811
82688
  // we can add intervals together
82812
82689
  functions.AddFunction(GetFunction(LogicalType::INTERVAL, LogicalType::INTERVAL));
82813
82690
  // we can add intervals to dates/times/timestamps
@@ -82978,15 +82855,6 @@ ScalarFunction SubtractFun::GetFunction(const LogicalType &left_type, const Logi
82978
82855
  ScalarFunction::BinaryFunction<dtime_t, interval_t, dtime_t, SubtractTimeOperator>);
82979
82856
  }
82980
82857
  break;
82981
- case LogicalTypeId::DATE_TZ:
82982
- if (right_type.id() == LogicalTypeId::DATE_TZ) {
82983
- return ScalarFunction("-", {left_type, right_type}, LogicalType::BIGINT,
82984
- ScalarFunction::BinaryFunction<date_t, date_t, int64_t, SubtractOperator>);
82985
- } else if (right_type.id() == LogicalTypeId::INTEGER) {
82986
- return ScalarFunction("-", {left_type, right_type}, left_type,
82987
- ScalarFunction::BinaryFunction<date_t, int32_t, date_t, SubtractOperator>);
82988
- }
82989
- break;
82990
82858
  default:
82991
82859
  break;
82992
82860
  }
@@ -83006,10 +82874,8 @@ void SubtractFun::RegisterFunction(BuiltinFunctions &set) {
83006
82874
  }
83007
82875
  // we can subtract dates from each other
83008
82876
  functions.AddFunction(GetFunction(LogicalType::DATE, LogicalType::DATE));
83009
- functions.AddFunction(GetFunction(LogicalType::DATE_TZ, LogicalType::DATE_TZ));
83010
82877
  // we can subtract integers from dates
83011
82878
  functions.AddFunction(GetFunction(LogicalType::DATE, LogicalType::INTEGER));
83012
- functions.AddFunction(GetFunction(LogicalType::DATE_TZ, LogicalType::INTEGER));
83013
82879
  // we can subtract timestamps from each other
83014
82880
  functions.AddFunction(GetFunction(LogicalType::TIMESTAMP, LogicalType::TIMESTAMP));
83015
82881
  // we can subtract intervals from each other
@@ -94162,7 +94028,6 @@ void DuckDBTypesFunction(ClientContext &context, const FunctionData *bind_data,
94162
94028
  case LogicalTypeId::TIMESTAMP:
94163
94029
  case LogicalTypeId::TIMESTAMP_NS:
94164
94030
  case LogicalTypeId::INTERVAL:
94165
- case LogicalTypeId::DATE_TZ:
94166
94031
  case LogicalTypeId::TIME_TZ:
94167
94032
  case LogicalTypeId::TIMESTAMP_TZ:
94168
94033
  category = "DATETIME";
@@ -95013,7 +94878,6 @@ static vector<TestType> GetTestTypes() {
95013
94878
  result.emplace_back(LogicalType::TIMESTAMP_S, "timestamp_s");
95014
94879
  result.emplace_back(LogicalType::TIMESTAMP_MS, "timestamp_ms");
95015
94880
  result.emplace_back(LogicalType::TIMESTAMP_NS, "timestamp_ns");
95016
- result.emplace_back(LogicalType::DATE_TZ, "date_tz");
95017
94881
  result.emplace_back(LogicalType::TIME_TZ, "time_tz");
95018
94882
  result.emplace_back(LogicalType::TIMESTAMP_TZ, "timestamp_tz");
95019
94883
  result.emplace_back(LogicalType::FLOAT, "float");
@@ -96745,7 +96609,6 @@ duckdb_type ConvertCPPTypeToC(const LogicalType &sql_type) {
96745
96609
  case LogicalTypeId::TIMESTAMP_TZ:
96746
96610
  return DUCKDB_TYPE_TIMESTAMP;
96747
96611
  case LogicalTypeId::DATE:
96748
- case LogicalTypeId::DATE_TZ:
96749
96612
  return DUCKDB_TYPE_DATE;
96750
96613
  case LogicalTypeId::TIME:
96751
96614
  case LogicalTypeId::TIME_TZ:
@@ -97133,7 +96996,6 @@ duckdb_state duckdb_translate_result(MaterializedQueryResult *result, duckdb_res
97133
96996
  WriteData<double>(out, result->collection, col);
97134
96997
  break;
97135
96998
  case LogicalTypeId::DATE:
97136
- case LogicalTypeId::DATE_TZ:
97137
96999
  WriteData<date_t>(out, result->collection, col);
97138
97000
  break;
97139
97001
  case LogicalTypeId::TIME:
@@ -109310,7 +109172,6 @@ void SetArrowFormat(DuckDBArrowSchemaHolder &root_holder, ArrowSchema &child, co
109310
109172
  child.format = "u";
109311
109173
  break;
109312
109174
  case LogicalTypeId::DATE:
109313
- case LogicalTypeId::DATE_TZ:
109314
109175
  child.format = "tdD";
109315
109176
  break;
109316
109177
  case LogicalTypeId::TIME:
@@ -141484,8 +141345,10 @@ bool BindContext::CheckExclusionList(StarExpression &expr, Binding *binding, con
141484
141345
  }
141485
141346
  auto entry = expr.replace_list.find(column_name);
141486
141347
  if (entry != expr.replace_list.end()) {
141348
+ auto new_entry = entry->second->Copy();
141349
+ new_entry->alias = entry->first;
141487
141350
  excluded_columns.insert(entry->first);
141488
- new_select_list.push_back(entry->second->Copy());
141351
+ new_select_list.push_back(move(new_entry));
141489
141352
  return true;
141490
141353
  }
141491
141354
  return false;
@@ -148624,7 +148487,6 @@ bool BoundCastExpression::CastIsInvertible(const LogicalType &source_type, const
148624
148487
  switch (target_type.id()) {
148625
148488
  case LogicalTypeId::DATE:
148626
148489
  case LogicalTypeId::TIME:
148627
- case LogicalTypeId::DATE_TZ:
148628
148490
  case LogicalTypeId::TIME_TZ:
148629
148491
  return false;
148630
148492
  default:
@@ -148639,7 +148501,6 @@ bool BoundCastExpression::CastIsInvertible(const LogicalType &source_type, const
148639
148501
  case LogicalTypeId::TIMESTAMP_NS:
148640
148502
  case LogicalTypeId::TIMESTAMP_MS:
148641
148503
  case LogicalTypeId::TIMESTAMP_SEC:
148642
- case LogicalTypeId::DATE_TZ:
148643
148504
  case LogicalTypeId::TIME_TZ:
148644
148505
  case LogicalTypeId::TIMESTAMP_TZ:
148645
148506
  return true;
@@ -148655,7 +148516,6 @@ bool BoundCastExpression::CastIsInvertible(const LogicalType &source_type, const
148655
148516
  case LogicalTypeId::TIMESTAMP_NS:
148656
148517
  case LogicalTypeId::TIMESTAMP_MS:
148657
148518
  case LogicalTypeId::TIMESTAMP_SEC:
148658
- case LogicalTypeId::DATE_TZ:
148659
148519
  case LogicalTypeId::TIME_TZ:
148660
148520
  case LogicalTypeId::TIMESTAMP_TZ:
148661
148521
  return true;
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 "e42fd2bd8"
15
- #define DUCKDB_VERSION "0.3.2-dev858"
14
+ #define DUCKDB_SOURCE_ID "be48a65ba"
15
+ #define DUCKDB_VERSION "0.3.2-dev874"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //
@@ -927,7 +927,6 @@ enum class LogicalTypeId : uint8_t {
927
927
  UINTEGER = 30,
928
928
  UBIGINT = 31,
929
929
  TIMESTAMP_TZ = 32,
930
- DATE_TZ = 33,
931
930
  TIME_TZ = 34,
932
931
 
933
932
 
@@ -1030,7 +1029,6 @@ public:
1030
1029
  static constexpr const LogicalTypeId TIMESTAMP_NS = LogicalTypeId::TIMESTAMP_NS;
1031
1030
  static constexpr const LogicalTypeId TIME = LogicalTypeId::TIME;
1032
1031
  static constexpr const LogicalTypeId TIMESTAMP_TZ = LogicalTypeId::TIMESTAMP_TZ;
1033
- static constexpr const LogicalTypeId DATE_TZ = LogicalTypeId::DATE_TZ;
1034
1032
  static constexpr const LogicalTypeId TIME_TZ = LogicalTypeId::TIME_TZ;
1035
1033
  static constexpr const LogicalTypeId VARCHAR = LogicalTypeId::VARCHAR;
1036
1034
  static constexpr const LogicalTypeId ANY = LogicalTypeId::ANY;
@@ -2615,7 +2613,6 @@ public:
2615
2613
  DUCKDB_API static Value POINTER(uintptr_t value);
2616
2614
  //! Create a date Value from a specified date
2617
2615
  DUCKDB_API static Value DATE(date_t date);
2618
- DUCKDB_API static Value DATETZ(date_t date);
2619
2616
  //! Create a date Value from a specified date
2620
2617
  DUCKDB_API static Value DATE(int32_t year, int32_t month, int32_t day);
2621
2618
  //! Create a time Value from a specified time
@@ -8633,7 +8630,6 @@ private:
8633
8630
  case LogicalTypeId::BIGINT:
8634
8631
  return std::is_same<T, int64_t>();
8635
8632
  case LogicalTypeId::DATE:
8636
- case LogicalTypeId::DATE_TZ:
8637
8633
  return std::is_same<T, date_t>();
8638
8634
  case LogicalTypeId::TIME:
8639
8635
  case LogicalTypeId::TIME_TZ: