duckdb 0.3.3-dev440.0 → 0.3.3-dev449.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 +26 -1
- package/src/duckdb.hpp +2 -2
- package/src/parquet-amalgamation.cpp +36416 -36416
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -69315,6 +69315,10 @@ struct VarianceFun {
|
|
|
69315
69315
|
static void RegisterFunction(BuiltinFunctions &set);
|
|
69316
69316
|
};
|
|
69317
69317
|
|
|
69318
|
+
struct StandardErrorOfTheMeanFun {
|
|
69319
|
+
static void RegisterFunction(BuiltinFunctions &set);
|
|
69320
|
+
};
|
|
69321
|
+
|
|
69318
69322
|
} // namespace duckdb
|
|
69319
69323
|
|
|
69320
69324
|
//===----------------------------------------------------------------------===//
|
|
@@ -69909,6 +69913,20 @@ struct STDDevPopOperation : public STDDevBaseOperation {
|
|
|
69909
69913
|
}
|
|
69910
69914
|
}
|
|
69911
69915
|
};
|
|
69916
|
+
|
|
69917
|
+
struct StandardErrorOfTheMeanOperation : public STDDevBaseOperation {
|
|
69918
|
+
template <class T, class STATE>
|
|
69919
|
+
static void Finalize(Vector &result, FunctionData *, STATE *state, T *target, ValidityMask &mask, idx_t idx) {
|
|
69920
|
+
if (state->count == 0) {
|
|
69921
|
+
mask.SetInvalid(idx);
|
|
69922
|
+
} else {
|
|
69923
|
+
target[idx] = sqrt(state->dsquared / state->count) / sqrt((state->count));
|
|
69924
|
+
if (!Value::DoubleIsValid(target[idx])) {
|
|
69925
|
+
throw OutOfRangeException("SEM is out of range!");
|
|
69926
|
+
}
|
|
69927
|
+
}
|
|
69928
|
+
}
|
|
69929
|
+
};
|
|
69912
69930
|
} // namespace duckdb
|
|
69913
69931
|
|
|
69914
69932
|
//===----------------------------------------------------------------------===//
|
|
@@ -70070,6 +70088,13 @@ void VarianceFun::RegisterFunction(BuiltinFunctions &set) {
|
|
|
70070
70088
|
set.AddFunction(var_samp);
|
|
70071
70089
|
}
|
|
70072
70090
|
|
|
70091
|
+
void StandardErrorOfTheMeanFun::RegisterFunction(BuiltinFunctions &set) {
|
|
70092
|
+
AggregateFunctionSet sem("sem");
|
|
70093
|
+
sem.AddFunction(AggregateFunction::UnaryAggregate<StddevState, double, double, StandardErrorOfTheMeanOperation>(
|
|
70094
|
+
LogicalType::DOUBLE, LogicalType::DOUBLE));
|
|
70095
|
+
set.AddFunction(sem);
|
|
70096
|
+
}
|
|
70097
|
+
|
|
70073
70098
|
} // namespace duckdb
|
|
70074
70099
|
|
|
70075
70100
|
|
|
@@ -70087,7 +70112,7 @@ void BuiltinFunctions::RegisterAlgebraicAggregates() {
|
|
|
70087
70112
|
Register<VarPopFun>();
|
|
70088
70113
|
Register<VarSampFun>();
|
|
70089
70114
|
Register<VarianceFun>();
|
|
70090
|
-
|
|
70115
|
+
Register<StandardErrorOfTheMeanFun>();
|
|
70091
70116
|
Register<Corr>();
|
|
70092
70117
|
}
|
|
70093
70118
|
|
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 "
|
|
15
|
-
#define DUCKDB_VERSION "v0.3.3-
|
|
14
|
+
#define DUCKDB_SOURCE_ID "1355f4f7a"
|
|
15
|
+
#define DUCKDB_VERSION "v0.3.3-dev449"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|