Skip to content

Commit 10e0022

Browse files
jdconradeltomello
andauthored
[DOCS] Fix transform painless example syntax (#88364) (#88691)
Corrects the syntax of an example for a scripted metric aggregation. Co-authored-by: eltomello <[email protected]>
1 parent 7ed2d9f commit 10e0022

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/reference/transform/painless-examples.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ POST _transform/_preview
573573
all_docs.add(span);
574574
}
575575
}
576-
all_docs.sort((HashMap o1, HashMap o2)->o1['@timestamp'].toEpochMilli()compareTo(o2['@timestamp']-toEpochMilli()));
576+
all_docs.sort((HashMap o1, HashMap o2)->o1['@timestamp'].toEpochMilli().compareTo(o2['@timestamp'].toEpochMilli()));
577577
def size = all_docs.size();
578578
def min_time = all_docs[0]['@timestamp'];
579579
def max_time = all_docs[size-1]['@timestamp'];
@@ -644,4 +644,4 @@ The API call results in a similar response:
644644
}
645645
...
646646
--------------------------------------------------
647-
// NOTCONSOLE
647+
// NOTCONSOLE

0 commit comments

Comments
 (0)