From 45328a41e81be49e7755a091d68433e2e232ff11 Mon Sep 17 00:00:00 2001 From: tpanetti Date: Wed, 14 Jun 2023 09:31:21 -0700 Subject: [PATCH] Fix test for MySQL Compatible Types to use clickhouse_client rather than clickhouse_local --- .../02775_show_columns_mysql_compatibility.sh | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/queries/0_stateless/02775_show_columns_mysql_compatibility.sh b/tests/queries/0_stateless/02775_show_columns_mysql_compatibility.sh index e324926e2e7..9aa199e8913 100755 --- a/tests/queries/0_stateless/02775_show_columns_mysql_compatibility.sh +++ b/tests/queries/0_stateless/02775_show_columns_mysql_compatibility.sh @@ -14,12 +14,12 @@ PORT=9004 # First run the clickhouse test to create the ClickHouse Tables echo "Drop tables if they exist" -${CLICKHOUSE_LOCAL} --query "DROP TABLE IF EXISTS tab" -${CLICKHOUSE_LOCAL} --query "DROP TABLE IF EXISTS database_123456789abcde" -${CLICKHOUSE_LOCAL} --query "DROP TABLE IF EXISTS database_123456789abcde.tab" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS tab" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS database_123456789abcdef" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS database_123456789abcdef.tab" echo "Create tab table " -${CLICKHOUSE_LOCAL} -n -q " +${CLICKHOUSE_CLIENT} -n -q " SET allow_suspicious_low_cardinality_types=1; SET allow_experimental_object_type=1; CREATE TABLE tab @@ -70,13 +70,13 @@ ${CLICKHOUSE_LOCAL} -n -q " echo "Create pseudo-random database name" -${CLICKHOUSE_LOCAL} --query "CREATE DATABASE database_123456789abcde;" +${CLICKHOUSE_CLIENT} --query "CREATE DATABASE database_123456789abcdef;" echo "Create tab duplicate table" -${CLICKHOUSE_LOCAL} -n -q " +${CLICKHOUSE_CLIENT} -n -q " SET allow_suspicious_low_cardinality_types=1; SET allow_experimental_object_type =1; - CREATE TABLE database_123456789abcde.tab + CREATE TABLE database_123456789abcdef.tab ( uint8 UInt8, uint16 UInt16, @@ -138,9 +138,9 @@ SHOW COLUMNS FROM tab NOT ILIKE '%INT%'; SHOW COLUMNS FROM tab WHERE field LIKE '%int%'; SHOW COLUMNS FROM tab LIMIT 1; SHOW COLUMNS FROM tab; -SHOW COLUMNS FROM tab FROM database_123456789abcde; -SHOW COLUMNS FROM database_123456789abcde.tab; -DROP DATABASE database_123456789abcde; +SHOW COLUMNS FROM tab FROM database_123456789abcdef; +SHOW COLUMNS FROM database_123456789abcdef.tab; +DROP DATABASE database_123456789abcdef; DROP TABLE tab; EOT