duckdb 0.6.2-dev964.0 → 0.6.2-dev971.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.6.2-dev964.0",
5
+ "version": "0.6.2-dev971.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {
@@ -16,28 +16,33 @@ namespace duckdb {
16
16
 
17
17
  bool TryGetDatePartSpecifier(const string &specifier_p, DatePartSpecifier &result) {
18
18
  auto specifier = StringUtil::Lower(specifier_p);
19
- if (specifier == "year" || specifier == "y" || specifier == "years") {
19
+ if (specifier == "year" || specifier == "yr" || specifier == "y" || specifier == "years" || specifier == "yrs") {
20
20
  result = DatePartSpecifier::YEAR;
21
21
  } else if (specifier == "month" || specifier == "mon" || specifier == "months" || specifier == "mons") {
22
22
  result = DatePartSpecifier::MONTH;
23
23
  } else if (specifier == "day" || specifier == "days" || specifier == "d" || specifier == "dayofmonth") {
24
24
  result = DatePartSpecifier::DAY;
25
- } else if (specifier == "decade" || specifier == "decades") {
25
+ } else if (specifier == "decade" || specifier == "dec" || specifier == "decades" || specifier == "decs") {
26
26
  result = DatePartSpecifier::DECADE;
27
- } else if (specifier == "century" || specifier == "centuries") {
27
+ } else if (specifier == "century" || specifier == "cent" || specifier == "centuries" || specifier == "c") {
28
28
  result = DatePartSpecifier::CENTURY;
29
- } else if (specifier == "millennium" || specifier == "millennia" || specifier == "millenium") {
29
+ } else if (specifier == "millennium" || specifier == "mil" || specifier == "millenniums" ||
30
+ specifier == "millennia" || specifier == "mils" || specifier == "millenium") {
30
31
  result = DatePartSpecifier::MILLENNIUM;
31
- } else if (specifier == "microseconds" || specifier == "microsecond") {
32
+ } else if (specifier == "microseconds" || specifier == "microsecond" || specifier == "us" || specifier == "usec" ||
33
+ specifier == "usecs" || specifier == "usecond" || specifier == "useconds") {
32
34
  result = DatePartSpecifier::MICROSECONDS;
33
35
  } else if (specifier == "milliseconds" || specifier == "millisecond" || specifier == "ms" || specifier == "msec" ||
34
- specifier == "msecs") {
36
+ specifier == "msecs" || specifier == "msecond" || specifier == "mseconds") {
35
37
  result = DatePartSpecifier::MILLISECONDS;
36
- } else if (specifier == "second" || specifier == "seconds" || specifier == "s") {
38
+ } else if (specifier == "second" || specifier == "sec" || specifier == "seconds" || specifier == "secs" ||
39
+ specifier == "s") {
37
40
  result = DatePartSpecifier::SECOND;
38
- } else if (specifier == "minute" || specifier == "minutes" || specifier == "m") {
41
+ } else if (specifier == "minute" || specifier == "min" || specifier == "minutes" || specifier == "mins" ||
42
+ specifier == "m") {
39
43
  result = DatePartSpecifier::MINUTE;
40
- } else if (specifier == "hour" || specifier == "hours" || specifier == "h") {
44
+ } else if (specifier == "hour" || specifier == "hr" || specifier == "hours" || specifier == "hrs" ||
45
+ specifier == "h") {
41
46
  result = DatePartSpecifier::HOUR;
42
47
  } else if (specifier == "epoch") {
43
48
  // seconds since 1970-01-01
@@ -1,8 +1,8 @@
1
1
  #ifndef DUCKDB_VERSION
2
- #define DUCKDB_VERSION "0.6.2-dev964"
2
+ #define DUCKDB_VERSION "0.6.2-dev971"
3
3
  #endif
4
4
  #ifndef DUCKDB_SOURCE_ID
5
- #define DUCKDB_SOURCE_ID "29c0bbc275"
5
+ #define DUCKDB_SOURCE_ID "0ab23dde05"
6
6
  #endif
7
7
  #include "duckdb/function/table/system_functions.hpp"
8
8
  #include "duckdb/main/database.hpp"
@@ -129,19 +129,9 @@ void StructColumnData::Append(BaseStatistics &stats, ColumnAppendState &state, V
129
129
  // append the null values
130
130
  validity.Append(*stats.validity_stats, state.child_appends[0], vector, count);
131
131
 
132
- auto &struct_validity = FlatVector::Validity(vector);
133
-
134
132
  auto &struct_stats = (StructStatistics &)stats;
135
133
  auto &child_entries = StructVector::GetEntries(vector);
136
134
  for (idx_t i = 0; i < child_entries.size(); i++) {
137
- if (!struct_validity.AllValid()) {
138
- // we set the child entries of the struct to NULL
139
- // for any values in which the struct itself is NULL
140
- child_entries[i]->Flatten(count);
141
-
142
- auto &child_validity = FlatVector::Validity(*child_entries[i]);
143
- child_validity.Combine(struct_validity, count);
144
- }
145
135
  sub_columns[i]->Append(*struct_stats.child_stats[i], state.child_appends[i + 1], *child_entries[i], count);
146
136
  }
147
137
  }