duckdb 0.3.2-dev5.0 → 0.3.2-dev68.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 +1 -1
- package/src/duckdb.cpp +1120 -590
- package/src/duckdb.hpp +14 -4
package/src/duckdb.hpp
CHANGED
|
@@ -10,8 +10,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
10
10
|
|
|
11
11
|
#pragma once
|
|
12
12
|
#define DUCKDB_AMALGAMATION 1
|
|
13
|
-
#define DUCKDB_SOURCE_ID "
|
|
14
|
-
#define DUCKDB_VERSION "0.3.2-
|
|
13
|
+
#define DUCKDB_SOURCE_ID "2bbae7746"
|
|
14
|
+
#define DUCKDB_VERSION "0.3.2-dev68"
|
|
15
15
|
//===----------------------------------------------------------------------===//
|
|
16
16
|
// DuckDB
|
|
17
17
|
//
|
|
@@ -6014,8 +6014,9 @@ public:
|
|
|
6014
6014
|
static constexpr const int32_t MONTHS_PER_YEAR = 12;
|
|
6015
6015
|
static constexpr const int32_t MONTHS_PER_QUARTER = 3;
|
|
6016
6016
|
static constexpr const int32_t DAYS_PER_WEEK = 7;
|
|
6017
|
-
|
|
6018
|
-
|
|
6017
|
+
//! only used for interval comparison/ordering purposes, in which case a month counts as 30 days
|
|
6018
|
+
static constexpr const int64_t DAYS_PER_MONTH = 30;
|
|
6019
|
+
static constexpr const int64_t DAYS_PER_YEAR = 365;
|
|
6019
6020
|
static constexpr const int64_t MSECS_PER_SEC = 1000;
|
|
6020
6021
|
static constexpr const int32_t SECS_PER_MINUTE = 60;
|
|
6021
6022
|
static constexpr const int32_t MINS_PER_HOUR = 60;
|
|
@@ -6066,6 +6067,12 @@ public:
|
|
|
6066
6067
|
//! Returns the exact difference between two timestamps (days and seconds)
|
|
6067
6068
|
static interval_t GetDifference(timestamp_t timestamp_1, timestamp_t timestamp_2);
|
|
6068
6069
|
|
|
6070
|
+
//! Add an interval to a date
|
|
6071
|
+
static date_t Add(date_t left, interval_t right);
|
|
6072
|
+
//! Add an interval to a time. In case the time overflows or underflows, modify the date by the overflow.
|
|
6073
|
+
//! For example if we go from 23:00 to 02:00, we add a day to the date
|
|
6074
|
+
static dtime_t Add(dtime_t left, interval_t right, date_t &date);
|
|
6075
|
+
|
|
6069
6076
|
//! Comparison operators
|
|
6070
6077
|
static bool Equals(interval_t left, interval_t right);
|
|
6071
6078
|
static bool GreaterThan(interval_t left, interval_t right);
|
|
@@ -12690,6 +12697,7 @@ enum class PhysicalOperatorType : uint8_t {
|
|
|
12690
12697
|
// Helpers
|
|
12691
12698
|
// -----------------------------
|
|
12692
12699
|
EXPLAIN,
|
|
12700
|
+
EXPLAIN_ANALYZE,
|
|
12693
12701
|
EMPTY_RESULT,
|
|
12694
12702
|
EXECUTE,
|
|
12695
12703
|
PREPARE,
|
|
@@ -13606,6 +13614,8 @@ public:
|
|
|
13606
13614
|
bool force_index_join = false;
|
|
13607
13615
|
//! Force out-of-core computation for operators that support it, used for testing
|
|
13608
13616
|
bool force_external = false;
|
|
13617
|
+
//! If binaries should be converted to strings by default on the parquet reader
|
|
13618
|
+
bool parquet_binary_as_strings = false;
|
|
13609
13619
|
//! Maximum bits allowed for using a perfect hash table (i.e. the perfect HT can hold up to 2^perfect_ht_threshold
|
|
13610
13620
|
//! elements)
|
|
13611
13621
|
idx_t perfect_ht_threshold = 12;
|