Skip to content

Commit 977503c

Browse files
committed
vendor: Update vendored sources to duckdb/duckdb@d9ee15f
fix: add StringStats::SetMaxStringLength (duckdb/duckdb#16326)
1 parent 2b8d006 commit 977503c

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/duckdb/src/function/table/version/pragma_version.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#ifndef DUCKDB_PATCH_VERSION
2-
#define DUCKDB_PATCH_VERSION "1-dev627"
2+
#define DUCKDB_PATCH_VERSION "1-dev629"
33
#endif
44
#ifndef DUCKDB_MINOR_VERSION
55
#define DUCKDB_MINOR_VERSION 2
@@ -8,10 +8,10 @@
88
#define DUCKDB_MAJOR_VERSION 1
99
#endif
1010
#ifndef DUCKDB_VERSION
11-
#define DUCKDB_VERSION "v1.2.1-dev627"
11+
#define DUCKDB_VERSION "v1.2.1-dev629"
1212
#endif
1313
#ifndef DUCKDB_SOURCE_ID
14-
#define DUCKDB_SOURCE_ID "befbc739c2"
14+
#define DUCKDB_SOURCE_ID "d9ee15f45e"
1515
#endif
1616
#include "duckdb/function/table/system_functions.hpp"
1717
#include "duckdb/main/database.hpp"

src/duckdb/src/include/duckdb/storage/statistics/string_stats.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ struct StringStats {
5454

5555
//! Resets the max string length so HasMaxStringLength() is false
5656
DUCKDB_API static void ResetMaxStringLength(BaseStatistics &stats);
57+
//! Sets the max string length
58+
DUCKDB_API static void SetMaxStringLength(BaseStatistics &stats, uint32_t length);
5759
//! FIXME: make this part of Set on statistics
5860
DUCKDB_API static void SetContainsUnicode(BaseStatistics &stats);
5961

src/duckdb/src/storage/statistics/string_stats.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ void StringStats::ResetMaxStringLength(BaseStatistics &stats) {
9191
StringStats::GetDataUnsafe(stats).has_max_string_length = false;
9292
}
9393

94+
void StringStats::SetMaxStringLength(BaseStatistics &stats, uint32_t length) {
95+
auto &data = StringStats::GetDataUnsafe(stats);
96+
data.has_max_string_length = true;
97+
data.max_string_length = length;
98+
}
99+
94100
void StringStats::SetContainsUnicode(BaseStatistics &stats) {
95101
StringStats::GetDataUnsafe(stats).has_unicode = true;
96102
}

0 commit comments

Comments
 (0)