duckdb 0.4.1-dev2267.0 → 0.4.1-dev2299.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 +17 -7
- package/src/duckdb.hpp +175 -174
- package/src/parquet-amalgamation.cpp +36428 -36409
- package/test/extension.test.js +4 -0
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -7947,6 +7947,10 @@ uint64_t NextPowerOfTwo(uint64_t v) {
|
|
|
7947
7947
|
return v;
|
|
7948
7948
|
}
|
|
7949
7949
|
|
|
7950
|
+
bool IsRowIdColumnId(column_t column_id) {
|
|
7951
|
+
return column_id == COLUMN_IDENTIFIER_ROW_ID;
|
|
7952
|
+
}
|
|
7953
|
+
|
|
7950
7954
|
} // namespace duckdb
|
|
7951
7955
|
/*
|
|
7952
7956
|
** This code taken from the SQLite test library. Originally found on
|
|
@@ -76000,14 +76004,20 @@ static bool StartsWithNumericDate(string &separator, const string &value) {
|
|
|
76000
76004
|
|
|
76001
76005
|
string GenerateDateFormat(const string &separator, const char *format_template) {
|
|
76002
76006
|
string format_specifier = format_template;
|
|
76003
|
-
|
|
76004
|
-
|
|
76005
|
-
|
|
76006
|
-
pos = std::find(pos + separator.size(), format_specifier.end(), '-')) {
|
|
76007
|
-
format_specifier.replace(pos, pos + 1, separator);
|
|
76007
|
+
auto amount_of_dashes = std::count(format_specifier.begin(), format_specifier.end(), '-');
|
|
76008
|
+
if (!amount_of_dashes) {
|
|
76009
|
+
return format_specifier;
|
|
76008
76010
|
}
|
|
76009
|
-
|
|
76010
|
-
|
|
76011
|
+
string result;
|
|
76012
|
+
result.reserve(format_specifier.size() - amount_of_dashes + (amount_of_dashes * separator.size()));
|
|
76013
|
+
for (auto &character : format_specifier) {
|
|
76014
|
+
if (character == '-') {
|
|
76015
|
+
result += separator;
|
|
76016
|
+
} else {
|
|
76017
|
+
result += character;
|
|
76018
|
+
}
|
|
76019
|
+
}
|
|
76020
|
+
return result;
|
|
76011
76021
|
}
|
|
76012
76022
|
|
|
76013
76023
|
TextSearchShiftArray::TextSearchShiftArray() {
|