mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-06 13:22:57 +00:00
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:
committed by
Ruihang Xia
parent
6e593401f7
commit
db89235474
@@ -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
|
||||
|
||||
|
||||
@@ -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+) _
|
||||
|
||||
Reference in New Issue
Block a user