-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Heinz N. Gies <[email protected]>
- Loading branch information
Showing
7 changed files
with
375 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Error: | ||
1 | for event of | ||
2 | case (k,v) => [k, v] | ||
| ^^^^^^ The binary operation `+` is not defined for the type `record` and `array` | ||
| ^^^^^^ Type error: Expected object, found array | ||
3 | into {} end; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
define flow main | ||
flow | ||
use tremor::{pipelines, connectors}; | ||
use bench; | ||
|
||
define pipeline main | ||
pipeline | ||
define script runtime | ||
script | ||
use std::record; | ||
record::from_array(for event of | ||
case (k, v) => [k, v] | ||
end) | ||
end; | ||
|
||
create script runtime; | ||
|
||
select event from in into runtime; | ||
select event from runtime into out; | ||
select event from runtime/err into err; | ||
|
||
end; | ||
create pipeline main; | ||
create connector bench from bench::bench; | ||
create connector console from connectors::console; | ||
|
||
connect /connector/bench to /pipeline/main; | ||
connect /pipeline/main to /connector/bench; | ||
connect /pipeline/main/err to /connector/console/stderr; | ||
end; | ||
deploy flow main; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[ | ||
"throughput", | ||
"codec:json", | ||
"focus:for" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.