Files
greptimedb/tests/cases/distributed/alter/rename_table.result
Ruihang Xia bee8323bae chore: bump sqlness to 0.5.0 (#1877)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
2023-07-04 19:49:12 +08:00

43 lines
889 B
Plaintext

CREATE TABLE t(i INTEGER, j BIGINT TIME INDEX);
Affected Rows: 0
DESC TABLE t;
+-------+-------+------+---------+---------------+
| Field | Type | Null | Default | Semantic Type |
+-------+-------+------+---------+---------------+
| i | Int32 | YES | | FIELD |
| j | Int64 | NO | | TIME INDEX |
+-------+-------+------+---------+---------------+
INSERT INTO TABLE t VALUES (1, 1), (3, 3), (NULL, 4);
Affected Rows: 3
SELECT * from t;
+---+---+
| i | j |
+---+---+
| 1 | 1 |
| 3 | 3 |
| | 4 |
+---+---+
-- TODO(LFC): Port test cases from standalone env when distribute rename table is implemented (#723).
ALTER TABLE t RENAME new_table;
Affected Rows: 0
DROP TABLE t;
Error: 4001(TableNotFound), Table not found: greptime.public.t
-- TODO: this clause should success
-- SQLNESS REPLACE details.*
DROP TABLE new_table;
Affected Rows: 1