Skip to content

Commit

Permalink
Update PPL parse command doc with limitation (opensearch-project#3274) (
Browse files Browse the repository at this point in the history
opensearch-project#3297)

(cherry picked from commit bb732e8)

Signed-off-by: Chen Dai <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent c7b623a commit 6fd731b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/user/ppl/cmd/parse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,9 @@ There are a few limitations with parse command:
``where`` in the following command will not work::

source=accounts | parse email '.+@(?<host>.+)' | stats avg(age) by host | where host=pyrami.com ;

- Fields defined by parse will not appear in the final result unless the original source field is included in the ``fields`` command.

For example, the following query will not display the parsed fields ``host`` unless the source field ``email`` is also explicitly included::

source=accounts | parse email '.+@(?<host>.+)' | fields email, host ;

0 comments on commit 6fd731b

Please sign in to comment.