File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
include/duckdb/storage/statistics Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 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
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"
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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+
94100void StringStats::SetContainsUnicode (BaseStatistics &stats) {
95101 StringStats::GetDataUnsafe (stats).has_unicode = true ;
96102}
You can’t perform that action at this time.
0 commit comments