mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-17 10:42:55 +00:00
* feat: only allow timestamp data type as time index * test: update sqltest cases, todo: need some fixes * fix: sqlness tests * fix: forgot adding back cte test * chore: style
29 lines
446 B
SQL
29 lines
446 B
SQL
CREATE TABLE t(i INTEGER, j TIMESTAMP TIME INDEX);
|
|
|
|
DESC TABLE t;
|
|
|
|
INSERT INTO TABLE t VALUES (1, 1), (3, 3), (NULL, 4);
|
|
|
|
SELECT * from t;
|
|
|
|
ALTER TABLE t RENAME new_table;
|
|
|
|
DESC TABLE t;
|
|
|
|
SELECT * FROM t;
|
|
|
|
CREATE TABLE t(i INTEGER, j TIMESTAMP TIME INDEX);
|
|
|
|
DESC TABLE new_table;
|
|
|
|
-- SQLNESS ARG restart=true
|
|
SELECT * FROM new_table;
|
|
|
|
ALTER TABLE new_table RENAME new_table;
|
|
|
|
ALTER TABLE new_table RENAME t;
|
|
|
|
DROP TABLE t;
|
|
|
|
DROP TABLE new_table;
|