duckdb 0.4.1-dev1191.0 → 0.4.1-dev1201.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.4.1-dev1191.0",
4
+ "version": "0.4.1-dev1201.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -47595,44 +47595,8 @@ string TypeIdToString(PhysicalType type) {
47595
47595
  return "INVALID";
47596
47596
  case PhysicalType::BIT:
47597
47597
  return "BIT";
47598
- case PhysicalType::NA:
47599
- return "NA";
47600
- case PhysicalType::HALF_FLOAT:
47601
- return "HALF_FLOAT";
47602
- case PhysicalType::STRING:
47603
- return "ARROW_STRING";
47604
- case PhysicalType::BINARY:
47605
- return "BINARY";
47606
- case PhysicalType::FIXED_SIZE_BINARY:
47607
- return "FIXED_SIZE_BINARY";
47608
- case PhysicalType::DATE32:
47609
- return "DATE32";
47610
- case PhysicalType::DATE64:
47611
- return "DATE64";
47612
- case PhysicalType::TIMESTAMP:
47613
- return "TIMESTAMP";
47614
- case PhysicalType::TIME32:
47615
- return "TIME32";
47616
- case PhysicalType::TIME64:
47617
- return "TIME64";
47618
- case PhysicalType::UNION:
47619
- return "UNION";
47620
- case PhysicalType::DICTIONARY:
47621
- return "DICTIONARY";
47622
47598
  case PhysicalType::MAP:
47623
47599
  return "MAP";
47624
- case PhysicalType::EXTENSION:
47625
- return "EXTENSION";
47626
- case PhysicalType::FIXED_SIZE_LIST:
47627
- return "FIXED_SIZE_LIST";
47628
- case PhysicalType::DURATION:
47629
- return "DURATION";
47630
- case PhysicalType::LARGE_STRING:
47631
- return "LARGE_STRING";
47632
- case PhysicalType::LARGE_BINARY:
47633
- return "LARGE_BINARY";
47634
- case PhysicalType::LARGE_LIST:
47635
- return "LARGE_LIST";
47636
47600
  case PhysicalType::UNKNOWN:
47637
47601
  return "UNKNOWN";
47638
47602
  }
@@ -47682,9 +47646,8 @@ idx_t GetTypeIdSize(PhysicalType type) {
47682
47646
  }
47683
47647
 
47684
47648
  bool TypeIsConstantSize(PhysicalType type) {
47685
- return (type >= PhysicalType::BOOL && type <= PhysicalType::DOUBLE) ||
47686
- (type >= PhysicalType::FIXED_SIZE_BINARY && type <= PhysicalType::INTERVAL) ||
47687
- type == PhysicalType::INTERVAL || type == PhysicalType::INT128;
47649
+ return (type >= PhysicalType::BOOL && type <= PhysicalType::DOUBLE) || type == PhysicalType::INTERVAL ||
47650
+ type == PhysicalType::INT128;
47688
47651
  }
47689
47652
  bool TypeIsIntegral(PhysicalType type) {
47690
47653
  return (type >= PhysicalType::UINT8 && type <= PhysicalType::INT64) || type == PhysicalType::INT128;
@@ -96796,34 +96759,6 @@ static void ListAggregatesFunction(DataChunk &args, ExpressionState &state, Vect
96796
96759
  FUNCTION_FUNCTOR::template ListExecuteFunction<FinalizeValueFunctor, double>(
96797
96760
  result, state_vector.state_vector, count);
96798
96761
  break;
96799
- case PhysicalType::DATE32:
96800
- FUNCTION_FUNCTOR::template ListExecuteFunction<FinalizeValueFunctor, int32_t>(
96801
- result, state_vector.state_vector, count);
96802
- break;
96803
- case PhysicalType::DATE64:
96804
- FUNCTION_FUNCTOR::template ListExecuteFunction<FinalizeValueFunctor, int64_t>(
96805
- result, state_vector.state_vector, count);
96806
- break;
96807
- case PhysicalType::TIMESTAMP:
96808
- FUNCTION_FUNCTOR::template ListExecuteFunction<FinalizeValueFunctor, int64_t>(
96809
- result, state_vector.state_vector, count);
96810
- break;
96811
- case PhysicalType::TIME32:
96812
- FUNCTION_FUNCTOR::template ListExecuteFunction<FinalizeValueFunctor, int32_t>(
96813
- result, state_vector.state_vector, count);
96814
- break;
96815
- case PhysicalType::TIME64:
96816
- FUNCTION_FUNCTOR::template ListExecuteFunction<FinalizeValueFunctor, int64_t>(
96817
- result, state_vector.state_vector, count);
96818
- break;
96819
- case PhysicalType::STRING:
96820
- FUNCTION_FUNCTOR::template ListExecuteFunction<FinalizeStringValueFunctor, string>(
96821
- result, state_vector.state_vector, count);
96822
- break;
96823
- case PhysicalType::LARGE_STRING:
96824
- FUNCTION_FUNCTOR::template ListExecuteFunction<FinalizeStringValueFunctor, string>(
96825
- result, state_vector.state_vector, count);
96826
- break;
96827
96762
  case PhysicalType::VARCHAR:
96828
96763
  FUNCTION_FUNCTOR::template ListExecuteFunction<FinalizeStringValueFunctor, string>(
96829
96764
  result, state_vector.state_vector, count);
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 "d75e93aa0"
15
- #define DUCKDB_VERSION "v0.4.1-dev1191"
14
+ #define DUCKDB_SOURCE_ID "24fa7413c"
15
+ #define DUCKDB_VERSION "v0.4.1-dev1201"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //
@@ -826,8 +826,8 @@ struct list_entry_t {
826
826
 
827
827
  // taken from arrow's type.h
828
828
  enum class PhysicalType : uint8_t {
829
- /// A NULL type having no physical storage
830
- NA = 0,
829
+ ///// A NULL type having no physical storage
830
+ //NA = 0,
831
831
 
832
832
  /// Boolean as 8 bit "bool" value
833
833
  BOOL = 1,
@@ -856,8 +856,8 @@ enum class PhysicalType : uint8_t {
856
856
  /// Signed 64-bit little-endian integer
857
857
  INT64 = 9,
858
858
 
859
- /// 2-byte floating point value
860
- HALF_FLOAT = 10,
859
+ ///// 2-byte floating point value
860
+ //HALF_FLOAT = 10,
861
861
 
862
862
  /// 4-byte floating point value
863
863
  FLOAT = 11,
@@ -865,32 +865,32 @@ enum class PhysicalType : uint8_t {
865
865
  /// 8-byte floating point value
866
866
  DOUBLE = 12,
867
867
 
868
- /// UTF8 variable-length string as List<Char>
869
- STRING = 13,
868
+ ///// UTF8 variable-length string as List<Char>
869
+ //STRING = 13,
870
870
 
871
- /// Variable-length bytes (no guarantee of UTF8-ness)
872
- BINARY = 14,
871
+ ///// Variable-length bytes (no guarantee of UTF8-ness)
872
+ //BINARY = 14,
873
873
 
874
- /// Fixed-size binary. Each value occupies the same number of bytes
875
- FIXED_SIZE_BINARY = 15,
874
+ ///// Fixed-size binary. Each value occupies the same number of bytes
875
+ //FIXED_SIZE_BINARY = 15,
876
876
 
877
- /// int32_t days since the UNIX epoch
878
- DATE32 = 16,
877
+ ///// int32_t days since the UNIX epoch
878
+ //DATE32 = 16,
879
879
 
880
- /// int64_t milliseconds since the UNIX epoch
881
- DATE64 = 17,
880
+ ///// int64_t milliseconds since the UNIX epoch
881
+ //DATE64 = 17,
882
882
 
883
- /// Exact timestamp encoded with int64 since UNIX epoch
884
- /// Default unit millisecond
885
- TIMESTAMP = 18,
883
+ ///// Exact timestamp encoded with int64 since UNIX epoch
884
+ ///// Default unit millisecond
885
+ //TIMESTAMP = 18,
886
886
 
887
- /// Time as signed 32-bit integer, representing either seconds or
888
- /// milliseconds since midnight
889
- TIME32 = 19,
887
+ ///// Time as signed 32-bit integer, representing either seconds or
888
+ ///// milliseconds since midnight
889
+ //TIME32 = 19,
890
890
 
891
- /// Time as signed 64-bit integer, representing either microseconds or
892
- /// nanoseconds since midnight
893
- TIME64 = 20,
891
+ ///// Time as signed 64-bit integer, representing either microseconds or
892
+ ///// nanoseconds since midnight
893
+ //TIME64 = 20,
894
894
 
895
895
  /// YEAR_MONTH or DAY_TIME interval in SQL style
896
896
  INTERVAL = 21,
@@ -905,36 +905,36 @@ enum class PhysicalType : uint8_t {
905
905
  /// Struct of logical types
906
906
  STRUCT = 24,
907
907
 
908
- /// Unions of logical types
909
- UNION = 25,
908
+ ///// Unions of logical types
909
+ //UNION = 25,
910
910
 
911
- /// Dictionary-encoded type, also called "categorical" or "factor"
912
- /// in other programming languages. Holds the dictionary value
913
- /// type but not the dictionary itself, which is part of the
914
- /// ArrayData struct
915
- DICTIONARY = 26,
911
+ ///// Dictionary-encoded type, also called "categorical" or "factor"
912
+ ///// in other programming languages. Holds the dictionary value
913
+ ///// type but not the dictionary itself, which is part of the
914
+ ///// ArrayData struct
915
+ //DICTIONARY = 26,
916
916
 
917
917
  /// Map, a repeated struct logical type
918
918
  MAP = 27,
919
919
 
920
- /// Custom data type, implemented by user
921
- EXTENSION = 28,
920
+ ///// Custom data type, implemented by user
921
+ //EXTENSION = 28,
922
922
 
923
- /// Fixed size list of some logical type
924
- FIXED_SIZE_LIST = 29,
923
+ ///// Fixed size list of some logical type
924
+ //FIXED_SIZE_LIST = 29,
925
925
 
926
- /// Measure of elapsed time in either seconds, milliseconds, microseconds
927
- /// or nanoseconds.
928
- DURATION = 30,
926
+ ///// Measure of elapsed time in either seconds, milliseconds, microseconds
927
+ ///// or nanoseconds.
928
+ //DURATION = 30,
929
929
 
930
- /// Like STRING, but with 64-bit offsets
931
- LARGE_STRING = 31,
930
+ ///// Like STRING, but with 64-bit offsets
931
+ //LARGE_STRING = 31,
932
932
 
933
- /// Like BINARY, but with 64-bit offsets
934
- LARGE_BINARY = 32,
933
+ ///// Like BINARY, but with 64-bit offsets
934
+ //LARGE_BINARY = 32,
935
935
 
936
- /// Like LIST, but with 64-bit offsets
937
- LARGE_LIST = 33,
936
+ ///// Like LIST, but with 64-bit offsets
937
+ //LARGE_LIST = 33,
938
938
 
939
939
  /// DuckDB Extensions
940
940
  VARCHAR = 200, // our own string representation, different from STRING and LARGE_STRING above
@@ -1203,11 +1203,11 @@ PhysicalType GetTypeId() {
1203
1203
  } else if (std::is_same<T, hugeint_t>()) {
1204
1204
  return PhysicalType::INT128;
1205
1205
  } else if (std::is_same<T, date_t>()) {
1206
- return PhysicalType::DATE32;
1206
+ return PhysicalType::INT32;
1207
1207
  } else if (std::is_same<T, dtime_t>()) {
1208
- return PhysicalType::TIME32;
1208
+ return PhysicalType::INT64;
1209
1209
  } else if (std::is_same<T, timestamp_t>()) {
1210
- return PhysicalType::TIMESTAMP;
1210
+ return PhysicalType::INT64;
1211
1211
  } else if (std::is_same<T, float>()) {
1212
1212
  return PhysicalType::FLOAT;
1213
1213
  } else if (std::is_same<T, double>()) {