diff --git a/src/tests/sqlsmith/src/sql_gen/functions.rs b/src/tests/sqlsmith/src/sql_gen/functions.rs index 01cbb0604d262..612887322b41f 100644 --- a/src/tests/sqlsmith/src/sql_gen/functions.rs +++ b/src/tests/sqlsmith/src/sql_gen/functions.rs @@ -129,6 +129,11 @@ impl<'a, R: Rng> SqlGenerator<'a, R> { input_string, Expr::Value(Value::SingleQuotedString(encoding.to_string())), ]; + let encoded_string = Expr::Function(make_simple_func("encode", &args); + let args = vec![ + encoded_string, + Expr::Value(Value::SingleQuotedString(encoding.to_string())), + ]; Expr::Function(make_simple_func("decode", &args)) }