From 2fcb9dd76f46919da7b4d3043b54f7d0371715bd Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Thu, 4 Sep 2025 18:56:05 +0300 Subject: [PATCH] stress: Use CREATE TABLE IF NOT EXISTS to create schema Different threads might attempt to create the same tables so avoid spurious errors printed out to the logs with `CREATE TABLE IF NOT EXISTS`. --- stress/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stress/main.rs b/stress/main.rs index 068355927..290636498 100644 --- a/stress/main.rs +++ b/stress/main.rs @@ -204,7 +204,7 @@ impl ArbitrarySchema { .collect::>() .join(","); - format!("CREATE TABLE {} ({});", table.name, columns) + format!("CREATE TABLE IF NOT EXISTS {} ({});", table.name, columns) }) .collect() }