From 6dabaa2a4f2c0772d60901c2c2be963dc864f4c7 Mon Sep 17 00:00:00 2001 From: taobo Date: Tue, 14 Nov 2023 21:30:37 +0800 Subject: [PATCH] test: move sqlness env show test to common dir --- .../common}/show/show_create.result | 0 .../common}/show/show_create.sql | 0 .../cases/standalone/show/show_create.result | 63 ------------------- tests/cases/standalone/show/show_create.sql | 35 ----------- 4 files changed, 98 deletions(-) rename tests/cases/{distributed => standalone/common}/show/show_create.result (100%) rename tests/cases/{distributed => standalone/common}/show/show_create.sql (100%) delete mode 100644 tests/cases/standalone/show/show_create.result delete mode 100644 tests/cases/standalone/show/show_create.sql diff --git a/tests/cases/distributed/show/show_create.result b/tests/cases/standalone/common/show/show_create.result similarity index 100% rename from tests/cases/distributed/show/show_create.result rename to tests/cases/standalone/common/show/show_create.result diff --git a/tests/cases/distributed/show/show_create.sql b/tests/cases/standalone/common/show/show_create.sql similarity index 100% rename from tests/cases/distributed/show/show_create.sql rename to tests/cases/standalone/common/show/show_create.sql diff --git a/tests/cases/standalone/show/show_create.result b/tests/cases/standalone/show/show_create.result deleted file mode 100644 index e9e22f060cf3..000000000000 --- a/tests/cases/standalone/show/show_create.result +++ /dev/null @@ -1,63 +0,0 @@ -CREATE TABLE system_metrics ( - id INT UNSIGNED NULL, - host STRING NULL, - cpu DOUBLE NULL COMMENT 'cpu', - disk FLOAT NULL, - ts TIMESTAMP NOT NULL DEFAULT current_timestamp(), - TIME INDEX (ts), - PRIMARY KEY (id, host) -) -ENGINE=mito -WITH( - ttl = '7d', - write_buffer_size = 1024 -); - -Affected Rows: 0 - -SHOW CREATE TABLE system_metrics; - -+----------------+-----------------------------------------------------------+ -| Table | Create Table | -+----------------+-----------------------------------------------------------+ -| system_metrics | CREATE TABLE IF NOT EXISTS "system_metrics" ( | -| | "id" INT UNSIGNED NULL, | -| | "host" STRING NULL, | -| | "cpu" DOUBLE NULL COMMENT 'cpu', | -| | "disk" FLOAT NULL, | -| | "ts" TIMESTAMP(3) NOT NULL DEFAULT current_timestamp(), | -| | TIME INDEX ("ts"), | -| | PRIMARY KEY ("id", "host") | -| | ) | -| | | -| | ENGINE=mito | -| | WITH( | -| | regions = 1, | -| | ttl = '7days', | -| | write_buffer_size = '1.0KiB' | -| | ) | -+----------------+-----------------------------------------------------------+ - -DROP TABLE system_metrics; - -Affected Rows: 0 - -CREATE TABLE not_supported_table_options_keys ( - id INT UNSIGNED, - host STRING, - cpu DOUBLE, - disk FLOAT, - n INT COMMENT 'range key', - ts TIMESTAMP NOT NULL DEFAULT current_timestamp(), - TIME INDEX (ts), - PRIMARY KEY (id, host) -) -ENGINE=mito -WITH( - foo = 123, - ttl = '7d', - write_buffer_size = 1024 -); - -Error: 1004(InvalidArguments), Invalid table option key: foo - diff --git a/tests/cases/standalone/show/show_create.sql b/tests/cases/standalone/show/show_create.sql deleted file mode 100644 index 86faf1a604aa..000000000000 --- a/tests/cases/standalone/show/show_create.sql +++ /dev/null @@ -1,35 +0,0 @@ -CREATE TABLE system_metrics ( - id INT UNSIGNED NULL, - host STRING NULL, - cpu DOUBLE NULL COMMENT 'cpu', - disk FLOAT NULL, - ts TIMESTAMP NOT NULL DEFAULT current_timestamp(), - TIME INDEX (ts), - PRIMARY KEY (id, host) -) -ENGINE=mito -WITH( - ttl = '7d', - write_buffer_size = 1024 -); - -SHOW CREATE TABLE system_metrics; - -DROP TABLE system_metrics; - -CREATE TABLE not_supported_table_options_keys ( - id INT UNSIGNED, - host STRING, - cpu DOUBLE, - disk FLOAT, - n INT COMMENT 'range key', - ts TIMESTAMP NOT NULL DEFAULT current_timestamp(), - TIME INDEX (ts), - PRIMARY KEY (id, host) -) -ENGINE=mito -WITH( - foo = 123, - ttl = '7d', - write_buffer_size = 1024 -);