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
This commit is contained in:
dennis zhuang
2023-08-30 19:16:10 +08:00
committed by Ruihang Xia
parent 6e593401f7
commit db89235474
62 changed files with 703 additions and 749 deletions

View File

@@ -1,4 +1,4 @@
CREATE TABLE integers(i BIGINT TIME INDEX);
CREATE TABLE integers(i BIGINT, ts TIMESTAMP TIME INDEX);
Affected Rows: 0
@@ -30,7 +30,7 @@ DROP TABLE integers;
Affected Rows: 1
CREATE TABLE test (a INTEGER, b INTEGER, t BIGINT TIME INDEX);
CREATE TABLE test (a INTEGER, b INTEGER, t TIMESTAMP TIME INDEX);
Affected Rows: 0

View File

@@ -1,4 +1,4 @@
CREATE TABLE integers(i BIGINT TIME INDEX);
CREATE TABLE integers(i BIGINT, ts TIMESTAMP TIME INDEX);
-- SQLNESS REPLACE (-+) -
-- SQLNESS REPLACE (\s\s+) _
@@ -10,7 +10,7 @@ EXPLAIN SELECT DISTINCT i%2 FROM integers ORDER BY 1;
DROP TABLE integers;
CREATE TABLE test (a INTEGER, b INTEGER, t BIGINT TIME INDEX);
CREATE TABLE test (a INTEGER, b INTEGER, t TIMESTAMP TIME INDEX);
-- SQLNESS REPLACE (-+) -
-- SQLNESS REPLACE (\s\s+) _