Skip to content

Commit 185c569

Browse files
committed
fix doc test
Signed-off-by: Jialiang Liang <jiallian@amazon.com>
1 parent c6a8057 commit 185c569

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/user/ppl/cmd/rex.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The rex command returns all events, setting extracted fields to null for non-mat
4949

5050
PPL query::
5151

52-
os> source=accounts | rex field=email "(?<user>[^@]+)@(?<domain>gmail\\.com)" | fields email, user, domain | head 2 ;
52+
os> source=accounts | rex field=email "(?<user>[^@]+)@(?<domain>gmail\.com)" | fields email, user, domain | head 2 ;
5353
fetched rows / total rows = 2/2
5454
+-----------------------+------+--------+
5555
| email | user | domain |
@@ -84,7 +84,7 @@ Extract comprehensive email components including top-level domain. All extracted
8484

8585
PPL query::
8686

87-
os> source=accounts | rex field=email "(?<user>[a-zA-Z0-9._%+-]+)@(?<domain>[a-zA-Z0-9.-]+)\\.(?<tld>[a-zA-Z]{2,})" | fields email, user, domain, tld | head 2 ;
87+
os> source=accounts | rex field=email "(?<user>[a-zA-Z0-9._%+-]+)@(?<domain>[a-zA-Z0-9.-]+)\.(?<tld>[a-zA-Z]{2,})" | fields email, user, domain, tld | head 2 ;
8888
fetched rows / total rows = 2/2
8989
+-----------------------+------------+--------+-----+
9090
| email | user | domain | tld |
@@ -142,7 +142,7 @@ Demonstrates the max_match limit protection mechanism. When max_match=0 (unlimit
142142

143143
PPL query with max_match=0 automatically capped to default limit of 10::
144144

145-
os> source=accounts | rex field=address "(?<digit>\\d*)" max_match=0 | eval digit_count=array_length(digit) | fields address, digit_count | head 1 ;
145+
os> source=accounts | rex field=address "(?<digit>\d*)" max_match=0 | eval digit_count=array_length(digit) | fields address, digit_count | head 1 ;
146146
fetched rows / total rows = 1/1
147147
+-----------------+-------------+
148148
| address | digit_count |
@@ -152,7 +152,7 @@ PPL query with max_match=0 automatically capped to default limit of 10::
152152

153153
PPL query exceeding the configured limit results in an error::
154154

155-
os> source=accounts | rex field=address "(?<digit>\\d*)" max_match=100 | fields address, digit | head 1 ;
155+
os> source=accounts | rex field=address "(?<digit>\d*)" max_match=100 | fields address, digit | head 1 ;
156156
{'reason': 'Invalid Query', 'details': 'Rex command max_match value (100) exceeds the configured limit (10). Consider using a smaller max_match value or adjust the plugins.ppl.rex.max_match.limit setting.', 'type': 'IllegalArgumentException'}
157157
Error: Query returned no data
158158

0 commit comments

Comments
 (0)