Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc logical_select: add document for post_filter
- Loading branch information
Showing
3 changed files
with
101 additions
and
9 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
50 changes: 50 additions & 0 deletions
50
doc/source/example/reference/commands/logical_select/post_filter.log
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,50 @@ | ||
| Execution example:: | ||
|
|
||
| logical_select \ | ||
| --logical_table Entries \ | ||
| --shard_key created_at \ | ||
| --columns[n_likes_sum_per_tag].stage filtered \ | ||
| --columns[n_likes_sum_per_tag].type UInt32 \ | ||
| --columns[n_likes_sum_per_tag].value 'window_sum(n_likes)' \ | ||
| --columns[n_likes_sum_per_tag].window.group_keys 'tag' \ | ||
| --filter 'content @ "system" || content @ "use"' \ | ||
| --post_filter 'n_likes_sum_per_tag > 10' \ | ||
| --output_columns _key,n_likes,n_likes_sum_per_tag | ||
| # [ | ||
| # [ | ||
| # 0, | ||
| # 1519030779.410312, | ||
| # 0.04758048057556152 | ||
| # ], | ||
| # [ | ||
| # [ | ||
| # [ | ||
| # 2 | ||
| # ], | ||
| # [ | ||
| # [ | ||
| # "_key", | ||
| # "ShortText" | ||
| # ], | ||
| # [ | ||
| # "n_likes", | ||
| # "UInt32" | ||
| # ], | ||
| # [ | ||
| # "n_likes_sum_per_tag", | ||
| # "UInt32" | ||
| # ] | ||
| # ] | ||
| # [ | ||
| # "Groonga", | ||
| # 10, | ||
| # 25 | ||
| # ], | ||
| # [ | ||
| # "Mroonga", | ||
| # 15, | ||
| # 25 | ||
| # ] | ||
| # ] | ||
| # ] | ||
| # ] |
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