Skip to content

Commit 8ef1949

Browse files
committed
refactor(query): support lazy read for update from
1 parent e338e11 commit 8ef1949

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

src/query/settings/src/settings_default.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ impl DefaultSettings {
12981298
range: Some(SettingRange::Numeric(0..=1)),
12991299
}),
13001300
("nondeterministic_update_lazy_read_threshold", DefaultSettingValue {
1301-
value: UserSettingValue::UInt64(u64::MAX),
1301+
value: UserSettingValue::UInt64(0),
13021302
desc: "Sets the maximum rows in a query to enable lazy read optimization when updating a multi-joined row. Setting it to 0 disables the optimization.",
13031303
mode: SettingMode::Both,
13041304
scope: SettingScope::Both,
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
statement ok
2+
set error_on_nondeterministic_update = 0;
3+
4+
statement ok
5+
set nondeterministic_update_lazy_read_threshold = 18446744073709551615;
6+
7+
include ./update.test
8+
9+
statement ok
10+
unset error_on_nondeterministic_update;
11+
12+
statement ok
13+
unset nondeterministic_update_lazy_read_threshold;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
statement ok
2+
set error_on_nondeterministic_update = 0;
3+
4+
statement ok
5+
set nondeterministic_update_lazy_read_threshold = 18446744073709551615;
6+
7+
include ./update_cte.test
8+
9+
statement ok
10+
unset error_on_nondeterministic_update;
11+
12+
statement ok
13+
unset nondeterministic_update_lazy_read_threshold;

0 commit comments

Comments
 (0)