Skip to content

Commit 1845204

Browse files
committed
Proxy queries after unsupported SET by default
Instead of erroring statements after an unsupported SET statement, proxy them to the upstream, logging a WARN. Fixes: CLD-1315 Release-Note-Core: If Readyset receives a SET statement it cannot support, proxy subsequent queries upstream. Change-Id: I9df95d074fe8b1490d816f31868d581a18bf7a2a Reviewed-on: https://gerrit.readyset.name/c/readyset/+/9784 Reviewed-by: Marcelo Altmann <marcelo@readyset.io> Tested-by: Buildkite CI
1 parent 71a0539 commit 1845204

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readyset/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,13 @@ pub struct Options {
270270
///
271271
/// The possible values are:
272272
///
273-
/// * "error" (default) - return an error to the client
274-
/// * "proxy" - proxy all subsequent statements
273+
/// * "error" - return an error to the client
274+
/// * "proxy" (default) - proxy all subsequent statements
275275
/// * "allow" - allow and ignore all unsupported set statements
276276
#[arg(
277277
long,
278278
env = "UNSUPPORTED_SET_MODE",
279-
default_value = "error",
279+
default_value = "proxy",
280280
hide = true
281281
)]
282282
unsupported_set_mode: UnsupportedSetMode,

0 commit comments

Comments
 (0)