mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-27 16:32:54 +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
24 lines
432 B
SQL
24 lines
432 B
SQL
CREATE TABLE strings(i STRING, t TIMESTAMP, time index(t));
|
|
|
|
INSERT INTO strings VALUES ('â‚(', 1);
|
|
|
|
INSERT INTO strings VALUES (3, 4);
|
|
|
|
SELECT * FROM strings WHERE i = 'â‚(';
|
|
|
|
CREATE TABLE a(i integer, j TIMESTAMP, time index(j));
|
|
|
|
INSERT INTO a VALUES (1, 2);
|
|
|
|
INSERT INTO a VALUES (1);
|
|
|
|
INSERT INTO a VALUES (1,2,3);
|
|
|
|
INSERT INTO a VALUES (1,2),(3);
|
|
|
|
INSERT INTO a VALUES (1,2),(3,4,5);
|
|
|
|
DROP TABLE strings;
|
|
|
|
DROP TABLE a;
|