mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-06 05:12:54 +00:00
feat: serialize/deserialize support for PromQL plans (#1684)
* implement serializer Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix clippy and CR comments Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix compile error Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * register registry Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * enable promql plan for dist planner Signed-off-by: Ruihang Xia <waynestxia@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
12
tests/cases/standalone/common/tql/basic.sql
Normal file
12
tests/cases/standalone/common/tql/basic.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user