Skip to content

Commit

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

Signed-off-by: Chen Dai <[email protected]>

* Address comments

Signed-off-by: Chen Dai <[email protected]>

* Fixed example

Signed-off-by: Chen Dai <[email protected]>

---------

Signed-off-by: Chen Dai <[email protected]>
  • Loading branch information
dai-chen authored Feb 4, 2025
1 parent a2cb2a3 commit bb732e8
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 bb732e8

Please sign in to comment.