duckdb 0.3.2-dev499.0 → 0.3.2-dev519.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 +12 -7
- package/src/duckdb.hpp +5 -5
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -35792,11 +35792,11 @@ struct SelCache {
|
|
|
35792
35792
|
namespace duckdb {
|
|
35793
35793
|
class Vector;
|
|
35794
35794
|
|
|
35795
|
-
//! The VectorCache holds cached data for
|
|
35795
|
+
//! The VectorCache holds cached data that allows for re-use of the same memory by vectors
|
|
35796
35796
|
class VectorCache {
|
|
35797
35797
|
public:
|
|
35798
|
-
|
|
35799
|
-
VectorCache(const LogicalType &type);
|
|
35798
|
+
//! Instantiate a vector cache with the given type
|
|
35799
|
+
explicit VectorCache(const LogicalType &type);
|
|
35800
35800
|
|
|
35801
35801
|
buffer_ptr<VectorBuffer> buffer;
|
|
35802
35802
|
|
|
@@ -38105,7 +38105,7 @@ bool TryAddOperator::Operation(int16_t left, int16_t right, int16_t &result);
|
|
|
38105
38105
|
template <>
|
|
38106
38106
|
bool TryAddOperator::Operation(int32_t left, int32_t right, int32_t &result);
|
|
38107
38107
|
template <>
|
|
38108
|
-
bool TryAddOperator::Operation(int64_t left, int64_t right, int64_t &result);
|
|
38108
|
+
DUCKDB_API bool TryAddOperator::Operation(int64_t left, int64_t right, int64_t &result);
|
|
38109
38109
|
|
|
38110
38110
|
struct AddOperatorOverflowCheck {
|
|
38111
38111
|
template <class TA, class TB, class TR>
|
|
@@ -38217,7 +38217,7 @@ bool TryMultiplyOperator::Operation(int16_t left, int16_t right, int16_t &result
|
|
|
38217
38217
|
template <>
|
|
38218
38218
|
bool TryMultiplyOperator::Operation(int32_t left, int32_t right, int32_t &result);
|
|
38219
38219
|
template <>
|
|
38220
|
-
bool TryMultiplyOperator::Operation(int64_t left, int64_t right, int64_t &result);
|
|
38220
|
+
DUCKDB_API bool TryMultiplyOperator::Operation(int64_t left, int64_t right, int64_t &result);
|
|
38221
38221
|
|
|
38222
38222
|
struct MultiplyOperatorOverflowCheck {
|
|
38223
38223
|
template <class TA, class TB, class TR>
|
|
@@ -39497,7 +39497,12 @@ timestamp_t Timestamp::FromDatetime(date_t date, dtime_t time) {
|
|
|
39497
39497
|
|
|
39498
39498
|
void Timestamp::Convert(timestamp_t timestamp, date_t &out_date, dtime_t &out_time) {
|
|
39499
39499
|
out_date = GetDate(timestamp);
|
|
39500
|
-
|
|
39500
|
+
int64_t days_micros;
|
|
39501
|
+
if (!TryMultiplyOperator::Operation<int64_t, int64_t, int64_t>(out_date.days, Interval::MICROS_PER_DAY,
|
|
39502
|
+
days_micros)) {
|
|
39503
|
+
throw ConversionException("Date out of range in timestamp conversion");
|
|
39504
|
+
}
|
|
39505
|
+
out_time = dtime_t(timestamp.value - days_micros);
|
|
39501
39506
|
D_ASSERT(timestamp == Timestamp::FromDatetime(out_date, out_time));
|
|
39502
39507
|
}
|
|
39503
39508
|
|
|
@@ -103603,7 +103608,7 @@ namespace duckdb {
|
|
|
103603
103608
|
|
|
103604
103609
|
class Value;
|
|
103605
103610
|
|
|
103606
|
-
//!
|
|
103611
|
+
//! Abstract type that provide client-specific context to FileSystem.
|
|
103607
103612
|
class FileOpener {
|
|
103608
103613
|
public:
|
|
103609
103614
|
virtual ~FileOpener() {};
|
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 "07830d900"
|
|
14
|
+
#define DUCKDB_VERSION "0.3.2-dev519"
|
|
15
15
|
//===----------------------------------------------------------------------===//
|
|
16
16
|
// DuckDB
|
|
17
17
|
//
|
|
@@ -1146,7 +1146,7 @@ bool IsValidType() {
|
|
|
1146
1146
|
extern const LogicalType LOGICAL_ROW_TYPE;
|
|
1147
1147
|
extern const PhysicalType ROW_TYPE;
|
|
1148
1148
|
|
|
1149
|
-
string TypeIdToString(PhysicalType type);
|
|
1149
|
+
DUCKDB_API string TypeIdToString(PhysicalType type);
|
|
1150
1150
|
idx_t GetTypeIdSize(PhysicalType type);
|
|
1151
1151
|
bool TypeIsConstantSize(PhysicalType type);
|
|
1152
1152
|
bool TypeIsIntegral(PhysicalType type);
|
|
@@ -6410,7 +6410,7 @@ public:
|
|
|
6410
6410
|
bind_scalar_function_t bind;
|
|
6411
6411
|
//! Init thread local state for the function (if any)
|
|
6412
6412
|
init_local_state_t init_local_state;
|
|
6413
|
-
|
|
6413
|
+
//! The dependency function (if any)
|
|
6414
6414
|
dependency_function_t dependency;
|
|
6415
6415
|
//! The statistics propagation function (if any)
|
|
6416
6416
|
function_statistics_t statistics;
|
|
@@ -12944,7 +12944,7 @@ public:
|
|
|
12944
12944
|
vector<unique_ptr<PhysicalOperator>> children;
|
|
12945
12945
|
//! The types returned by this physical operator
|
|
12946
12946
|
vector<LogicalType> types;
|
|
12947
|
-
//! The
|
|
12947
|
+
//! The estimated cardinality of this physical operator
|
|
12948
12948
|
idx_t estimated_cardinality;
|
|
12949
12949
|
//! The global sink state of this operator
|
|
12950
12950
|
unique_ptr<GlobalSinkState> sink_state;
|