Skip to content

Commit

Permalink
Sync PPL commands doc with main repo (#549)
Browse files Browse the repository at this point in the history
Signed-off-by: Peng Huo <[email protected]>
  • Loading branch information
penghuo authored Mar 9, 2022
1 parent 4a9ad9b commit 91cacf9
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,7 @@ PPL query:
| 13 | F |
| 18 | M |
+------------------+----------+
#### Limitation
The \`dedup\` command is not rewritten to OpenSearch DSL, it is only executed on the coordination node.
`;
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,7 @@ PPL query:
| 28 | 56 | 112 |
| 33 | 66 | 132 |
+-------+-------------+---------+
#### Limitation
The \`eval\` command is not rewritten to OpenSearch DSL, it is only executed on the coordination node.
`;
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,7 @@ PPL query:
| Hattie | 36 |
| Nanette | 28 |
+---------------+-----------+
#### Limitation
The \`head\` command is not rewritten to OpenSearch DSL, it is only executed on the coordination node.
`;
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@ PPL query:
| M | 25 |
| M | 29 |
+----------+----------+
#### Limitation
The \`rare\` command is not rewritten to OpenSearch DSL, it is only executed on the coordination node.
`;
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,7 @@ PPL query:
| 13 | Quility |
| 18 | null |
+------+---------+
#### Limitation
The \`rename\` command is not rewritten to OpenSearch DSL, it is only executed on the coordination node.
`;
Original file line number Diff line number Diff line change
Expand Up @@ -334,4 +334,20 @@ PPL query:
| 1 | 20 |
| 3 | 30 |
+--------------+------------+
### Example 9: Calculate the count by a gender and span
The example gets the count of age by the interval of 10 years and group by gender.
PPL query::
os> source=accounts | stats count() as cnt by span(age, 5) as age_span, gender
fetched rows / total rows = 3/3
+-------+------------+----------+
| cnt | age_span | gender |
|-------+------------+----------|
| 1 | 25 | F |
| 2 | 30 | M |
| 1 | 35 | M |
+-------+------------+----------+
`;
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,7 @@ PPL query:
| F | 39 |
| M | 31 |
+----------+----------+
#### Limitation
The \`top\` command is not rewritten to OpenSearch DSL, it is only executed on the coordination node.
`;

0 comments on commit 91cacf9

Please sign in to comment.