Files
greptimedb/tests/cases/standalone/common/insert/insert_invalid.sql
dennis zhuang db89235474 feat: only allow timestamp type as time index (#2281)
* 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
2023-09-12 07:57:15 -05:00

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;