mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-30 20:00:36 +00:00
feat: flownode frontend client&test feat: Frontend Client feat: set frontend invoker for flownode feat: set frontend invoker for flownode chore: test script WIP: test flow distributed feat: hard coded demo docs: flownode example toml feat: add flownode support in runner docs: comments for node chore: after rebase docs: add a todo tests: move flow tests to common fix: flownode sqlness dist test chore: per review docs: make fix: make doc
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
CREATE TABLE numbers_input (
|
|
number INT,
|
|
ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
PRIMARY KEY(number),
|
|
TIME INDEX(ts)
|
|
);
|
|
|
|
Affected Rows: 0
|
|
|
|
create table out_num_cnt (
|
|
number INT,
|
|
ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP TIME INDEX);
|
|
|
|
Affected Rows: 0
|
|
|
|
CREATE FLOW filter_numbers SINK TO out_num_cnt AS SELECT number FROM numbers_input where number > 10;
|
|
|
|
Affected Rows: 0
|
|
|
|
SHOW CREATE FLOW filter_numbers;
|
|
|
|
+----------------+-------------------------------------------------------+
|
|
| Flow | Create Flow |
|
|
+----------------+-------------------------------------------------------+
|
|
| filter_numbers | CREATE OR REPLACE FLOW IF NOT EXISTS filter_numbers |
|
|
| | SINK TO out_num_cnt |
|
|
| | AS SELECT number FROM numbers_input WHERE number > 10 |
|
|
+----------------+-------------------------------------------------------+
|
|
|
|
drop flow filter_numbers;
|
|
|
|
Affected Rows: 0
|
|
|
|
drop table out_num_cnt;
|
|
|
|
Affected Rows: 0
|
|
|
|
drop table numbers_input;
|
|
|
|
Affected Rows: 0
|
|
|