diff --git a/src/sqlparser/test_runner/tests/test_runner.rs b/src/sqlparser/test_runner/tests/test_runner.rs index 501e27f33ab39..513108caf9e92 100644 --- a/src/sqlparser/test_runner/tests/test_runner.rs +++ b/src/sqlparser/test_runner/tests/test_runner.rs @@ -12,8 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +use risingwave_sqlparser::ast::REDACT_SQL_OPTION; + // Traverses the 'testdata/' directory and runs all files. #[test] fn run_all_test_files() { - risingwave_sqlparser_test_runner::run_all_test_files(); + REDACT_SQL_OPTION.sync_scope(false, || { + risingwave_sqlparser_test_runner::run_all_test_files(); + }); }