mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-10 07:12:54 +00:00
* separate config and datanode impl Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * partial implement of fetching region id list Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * reopen all regions on starting region server Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * update sqlness & assign default datanode id Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * set writable on lease Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * apply cr suggs. Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * Update src/datanode/src/datanode.rs Co-authored-by: Yingwen <realevenyag@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com> Co-authored-by: dennis zhuang <killme2008@gmail.com> Co-authored-by: Yingwen <realevenyag@gmail.com>
15 lines
466 B
SQL
15 lines
466 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");
|
|
|
|
-- analyze at 0s, 5s and 10s. No point at 0s.
|
|
-- SQLNESS REPLACE (metrics.*) REDACTED
|
|
-- SQLNESS REPLACE (RoundRobinBatch.*) REDACTED
|
|
-- SQLNESS REPLACE (-+) -
|
|
-- SQLNESS REPLACE (\s\s+) _
|
|
-- SQLNESS REPLACE (peers.*) REDACTED
|
|
TQL ANALYZE (0, 10, '5s') test;
|
|
|
|
DROP TABLE test;
|