From 598f109e9557dcb60947ee38485db2eed117a9db Mon Sep 17 00:00:00 2001 From: CookiePieWw <1035325592@qq.com> Date: Tue, 23 Apr 2024 13:28:01 +0800 Subject: [PATCH] fix: avoid possible duplicate name --- tests-fuzz/src/generator/create_expr.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests-fuzz/src/generator/create_expr.rs b/tests-fuzz/src/generator/create_expr.rs index e9b473e78e07..2d0c2edbaf0c 100644 --- a/tests-fuzz/src/generator/create_expr.rs +++ b/tests-fuzz/src/generator/create_expr.rs @@ -277,6 +277,10 @@ impl Generator for CreateLogicalTableExprG .unwrap(); let mut table = table_generator.generate(rng)?; + let physical_table_name = physical_table_name.into(); + while table.table_name == physical_table_name { + table.table_name = table_generator.name_generator.gen(rng); + } let logical_ts = table.columns.iter().position(|column| { column .options