From 8c31f8af50e7b6d3d897bd82bba8c431cbe230f8 Mon Sep 17 00:00:00 2001 From: niebayes Date: Wed, 27 Mar 2024 17:34:35 +0800 Subject: [PATCH] chore: alter tables by adding a new column --- .../src/tests/instance_kafka_wal_test.rs | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/tests-integration/src/tests/instance_kafka_wal_test.rs b/tests-integration/src/tests/instance_kafka_wal_test.rs index ec587290197f..031fc16bc310 100644 --- a/tests-integration/src/tests/instance_kafka_wal_test.rs +++ b/tests-integration/src/tests/instance_kafka_wal_test.rs @@ -121,7 +121,7 @@ async fn test_replay(rebuildable_instance: Option, table_name: &str) -> Output { } /// Sends an alter table SQL. -async fn do_alter(instance: &Arc, table_name: &str, new_table_name: &str) -> Output { +async fn do_alter(instance: &Arc, table_name: &str) -> Output { execute_sql_with( instance, - &format!("alter table {} rename {}", table_name, new_table_name), + &format!("alter table {} add column new_col STRING", table_name), QueryContext::with(DEFAULT_CATALOG_NAME, "test"), ) .await