You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user/ppl/cmd/appendpipe.rst
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,6 @@ appendpipe
12
12
Description
13
13
============
14
14
|Using ``appendpipe`` command to appends the result of the subpipeline to the search results. Unlike a subsearch, the subpipeline is not run first.The subpipeline is run when the search reaches the appendpipe command.
15
-
The appendpipe command is used to append the output of transforming commands, such as chart, timechart, stats, and top.
16
15
The command aligns columns with the same field names and types. For different column fields between the main search and sub-search, NULL values are filled in the respective rows.
17
16
18
17
Version
@@ -32,7 +31,7 @@ This example appends rows from "total by gender" to "sum by gender, state" with
32
31
33
32
PPL query::
34
33
35
-
os> source=accounts | stats sum(age) as part by gender, state | sort -sum | head 5 | appendpipe [ stats sum(part) as total by gender ];
34
+
os> source=accounts | stats sum(age) as part by gender, state | sort -part | head 5 | appendpipe [ stats sum(part) as total by gender ];
36
35
fetched rows / total rows = 6/6
37
36
+------+--------+-------+-------+
38
37
| part | gender | state | total |
@@ -54,7 +53,7 @@ This example appends rows from "count by gender" to "sum by gender, state".
54
53
55
54
PPL query::
56
55
57
-
os> source=accounts | stats sum(age) as total by gender, state | sort -`sum(age)` | head 5 | appendpipe [ stats sum(total) as total by gender ];
56
+
os> source=accounts | stats sum(age) as total by gender, state | sort -total | head 5 | appendpipe [ stats sum(total) as total by gender ];
58
57
fetched rows / total rows = 6/6
59
58
+----------+--------+-------+
60
59
| total | gender | state |
@@ -74,7 +73,7 @@ This example shows how column type conflicts are handled when appending results.
74
73
75
74
PPL query::
76
75
77
-
os> source=accounts | stats sum(age) as total by gender, state | sort -`sum(age)` | head 5 | appendpipe [ stats sum(total) as total by gender | eval state = 123 ];
76
+
os> source=accounts | stats sum(age) as total by gender, state | sort -total | head 5 | appendpipe [ stats sum(total) as total by gender | eval state = 123 ];
0 commit comments