Skip to content

Commit 3188c7d

Browse files
committed
doc
1 parent 2e0ee80 commit 3188c7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/optimizer/rules/logical/TranslateTimeSeriesAggregate.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@
114114
* | STATS sum(`rate(request)`), `min(memory_used)` = from_partial($p1, min($)) BY pod=`VALUES(pod)`, `bucket(@timestamp, 5m)`
115115
* | KEEP `min(memory_used)`, `sum(rate(request))`, pod, `bucket(@timestamp, 5m)`
116116
*
117-
* _over_time time-series aggregation will be rewritten in the similar way
117+
* {agg}_over_time time-series aggregation will be rewritten in the similar way
118118
*
119119
* TS k8s | STATS sum(max_over_time(memory_usage)) BY host, bucket(@timestamp, 1minute)
120120
*
121121
* becomes
122122
*
123123
* TS k8s
124-
* | STATS max(memory_usage), VALUES(host) BY _tsid, bucket(@timestamp, 1minute)
125-
* | STATS sum(`max(memory_usage)`) BY host=`VALUES(host)`, `bucket(@timestamp, 1minute)`
124+
* | STATS max_memory_usage = max(memory_usage), host_values=VALUES(host) BY _tsid, time_bucket=bucket(@timestamp, 1minute)
125+
* | STATS sum(max_memory_usage) BY host_values, time_bucket
126126
*
127127
* </pre>
128128
*/

0 commit comments

Comments
 (0)