Files
greptimedb/tests/cases/distributed/alter/rename_table.sql
Ruihang Xia 939a51aea9 feat: adopt REPLACE interceptor and quit all processes on exit (#1478)
* bump version and update test

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* quit all processes on drop

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* Update tests/runner/src/env.rs

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com>
2023-04-27 07:16:41 +00:00

17 lines
374 B
SQL

CREATE TABLE t(i INTEGER, j BIGINT TIME INDEX);
DESC TABLE t;
INSERT INTO TABLE t VALUES (1, 1), (3, 3), (NULL, 4);
SELECT * from t;
-- TODO(LFC): Port test cases from standalone env when distribute rename table is implemented (#723).
ALTER TABLE t RENAME new_table;
DROP TABLE t;
-- TODO: this clause should success
-- SQLNESS REPLACE details.*
DROP TABLE new_table;