Skip to content

Commit 88841ef

Browse files
committed
fix: ignore doctests with non-deterministic outputs across JDK11/17/21
Signed-off-by: Kyle Hounslow <kylhouns@amazon.com>
1 parent fa5d08b commit 88841ef

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/user/ppl/cmd/streamstats.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ fetched rows / total rows = 4/4
116116

117117
This example calculates the running maximum age over a 2-row window, excluding the current event.
118118

119-
```ppl
119+
```ppl ignore
120120
source=state_country
121121
| streamstats current=false window=2 max(age) as prev_max_age
122122
```
@@ -164,7 +164,7 @@ original data
164164
* global=true: The window slides across all rows globally (following their input order), but inside each window, aggregation is still computed by country. So we process the data stream row by row to build the sliding window with size 2. We can see that David and Rick are in a window.
165165
* global=false: Each by group (country) forms its own independent stream and window (size 2). So David and Hello are in one window for USA. This time we get running_avg 35 for David, rather than 40 when global is set true.
166166

167-
```ppl
167+
```ppl ignore
168168
source=state_country
169169
| streamstats window=2 global=true avg(age) as running_avg by country
170170
```
@@ -187,7 +187,7 @@ fetched rows / total rows = 8/8
187187
+-------+---------+------------+-------+------+-----+-------------+
188188
```
189189

190-
```ppl
190+
```ppl ignore
191191
source=state_country
192192
| streamstats window=2 global=false avg(age) as running_avg by country ;
193193
```
@@ -214,7 +214,7 @@ fetched rows / total rows = 8/8
214214

215215
This example calculates the running average of age across accounts by country, with resets applied.
216216

217-
```ppl
217+
```ppl ignore
218218
source=state_country
219219
| streamstats current=false reset_before=age>34 reset_after=age<25 avg(age) as avg_age by country
220220
```

docs/user/ppl/interfaces/endpoint.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Explain output could be set different formats: `standard` (the default format),
6666

6767
Explain query
6868

69-
```bash ppl
69+
```bash ppl ignore
7070
curl -sS -H 'Content-Type: application/json' \
7171
-X POST localhost:9200/_plugins/_ppl/_explain \
7272
-d '{"query" : "source=state_country | where age>30"}'
@@ -108,7 +108,7 @@ Expected output:
108108

109109
Explain query
110110

111-
```bash ppl
111+
```bash ppl ignore
112112
curl -sS -H 'Content-Type: application/json' \
113113
-X POST localhost:9200/_plugins/_ppl/_explain?format=extended \
114114
-d '{"query" : "source=state_country | where age>30"}'
@@ -133,7 +133,7 @@ Expected output:
133133
Return Explain response format in In `yaml` format.
134134
Explain query
135135

136-
```bash ppl
136+
```bash ppl ignore
137137
curl -sS -H 'Content-Type: application/json' \
138138
-X POST localhost:9200/_plugins/_ppl/_explain?format=yaml \
139139
-d '{"query" : "source=state_country | where age>30"}'

0 commit comments

Comments
 (0)