duckdb 0.7.1-dev2.0 → 0.7.1-dev7.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
@@ -2,7 +2,7 @@
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
4
  "types": "./lib/duckdb.d.ts",
5
- "version": "0.7.1-dev2.0",
5
+ "version": "0.7.1-dev7.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {
@@ -113,7 +113,7 @@ public:
113
113
  static constexpr char const *TYPE_STRING_OBJECT = "OBJECT";
114
114
 
115
115
  template <class YYJSON_VAL_T>
116
- static inline const char *const ValTypeToString(YYJSON_VAL_T *val) {
116
+ static inline const char *ValTypeToString(YYJSON_VAL_T *val) {
117
117
  switch (GetTag<YYJSON_VAL_T>(val)) {
118
118
  case YYJSON_TYPE_NULL | YYJSON_SUBTYPE_NONE:
119
119
  return JSONCommon::TYPE_STRING_NULL;
@@ -143,7 +143,7 @@ public:
143
143
  }
144
144
 
145
145
  template <class YYJSON_VAL_T>
146
- static inline const LogicalTypeId ValTypeToLogicalTypeId(YYJSON_VAL_T *val) {
146
+ static inline LogicalTypeId ValTypeToLogicalTypeId(YYJSON_VAL_T *val) {
147
147
  switch (GetTag<YYJSON_VAL_T>(val)) {
148
148
  case YYJSON_TYPE_NULL | YYJSON_SUBTYPE_NONE:
149
149
  return LogicalTypeId::SQLNULL;
@@ -253,6 +253,7 @@ bool JSONTransform::GetStringVector(yyjson_val *vals[], const idx_t count, const
253
253
  Vector &string_vector, JSONTransformOptions &options) {
254
254
  auto data = (string_t *)FlatVector::GetData(string_vector);
255
255
  auto &validity = FlatVector::Validity(string_vector);
256
+ validity.SetAllValid(count);
256
257
 
257
258
  for (idx_t i = 0; i < count; i++) {
258
259
  const auto &val = vals[i];
@@ -17,7 +17,7 @@ void JSONScan::AutoDetect(ClientContext &context, JSONScanData &bind_data, vecto
17
17
  {LogicalTypeId::DATE, {"%m-%d-%Y", "%m-%d-%y", "%d-%m-%Y", "%d-%m-%y", "%Y-%m-%d", "%y-%m-%d"}},
18
18
  {LogicalTypeId::TIMESTAMP,
19
19
  {"%Y-%m-%d %H:%M:%S.%f", "%m-%d-%Y %I:%M:%S %p", "%m-%d-%y %I:%M:%S %p", "%d-%m-%Y %H:%M:%S",
20
- "%d-%m-%y %H:%M:%S", "%Y-%m-%d %H:%M:%S", "%y-%m-%d %H:%M:%S"}},
20
+ "%d-%m-%y %H:%M:%S", "%Y-%m-%d %H:%M:%S", "%y-%m-%d %H:%M:%S", "%Y-%m-%dT%H:%M:%SZ"}},
21
21
  };
22
22
 
23
23
  // Populate possible date/timestamp formats, assume this is consistent across columns
@@ -1,8 +1,8 @@
1
1
  #ifndef DUCKDB_VERSION
2
- #define DUCKDB_VERSION "0.7.1-dev2"
2
+ #define DUCKDB_VERSION "0.7.1-dev7"
3
3
  #endif
4
4
  #ifndef DUCKDB_SOURCE_ID
5
- #define DUCKDB_SOURCE_ID "0f5e1ec507"
5
+ #define DUCKDB_SOURCE_ID "05803a9db2"
6
6
  #endif
7
7
  #include "duckdb/function/table/system_functions.hpp"
8
8
  #include "duckdb/main/database.hpp"