mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-05 12:52:57 +00:00
* test: add basic cases for distributed TQL Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * drop table Signed-off-by: Ruihang Xia <waynestxia@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
13 lines
377 B
SQL
13 lines
377 B
SQL
CREATE TABLE test(i DOUBLE, j TIMESTAMP TIME INDEX, k STRING PRIMARY KEY);
|
|
|
|
-- insert two points at 1ms and one point at 2ms
|
|
INSERT INTO test VALUES (1, 1, "a"), (1, 1, "b"), (2, 2, "a");
|
|
|
|
-- evaluate at 0s, 5s and 10s. No point at 0s.
|
|
TQL EVAL (0, 10, '5s') test;
|
|
|
|
-- the point at 1ms will be shadowed by the point at 2ms
|
|
TQL EVAL (0, 10, '5s') test{k="a"};
|
|
|
|
DROP TABLE test;
|