Skip to content

Commit 3361654

Browse files
committed
vendor: Update vendored sources to duckdb/duckdb@5e6f23a
Use seed for system sample when it is provided. (duckdb/duckdb#16408)
1 parent 7bb19ae commit 3361654

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-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-dev204"
2+
#define DUCKDB_PATCH_VERSION "1-dev207"
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-dev204"
11+
#define DUCKDB_VERSION "v1.2.1-dev207"
1212
#endif
1313
#ifndef DUCKDB_SOURCE_ID
14-
#define DUCKDB_SOURCE_ID "4c370a7fe0"
14+
#define DUCKDB_SOURCE_ID "5e6f23a220"
1515
#endif
1616
#include "duckdb/function/table/system_functions.hpp"
1717
#include "duckdb/main/database.hpp"

src/duckdb/src/storage/table/scan_state.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ void TableScanState::Initialize(vector<StorageIndex> column_ids_p, optional_ptr<
2525
if (table_sampling) {
2626
sampling_info.do_system_sample = table_sampling->method == SampleMethod::SYSTEM_SAMPLE;
2727
sampling_info.sample_rate = table_sampling->sample_size.GetValue<double>() / 100.0;
28+
if (table_sampling->seed.IsValid()) {
29+
table_state.random.SetSeed(table_sampling->seed.GetIndex());
30+
}
2831
}
2932
}
3033

0 commit comments

Comments
 (0)