Skip to content

Commit

Permalink
Use ESQL LIMIT in query (elastic#197017)
Browse files Browse the repository at this point in the history
## Summary

At the moment the lack of `LIMIT` is causing our CI to log a lot of
these warnings as deprecation warnings.

This is not the final fix, but will reduce some of this logging in the
meantime.
  • Loading branch information
jloleysens authored Oct 23, 2024
1 parent 658ecea commit 1a11d6a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ const getESQLDocumentCountStats = async (
` | EVAL _timestamp_= TO_DOUBLE(DATE_TRUNC(${intervalMs} millisecond, ${getSafeESQLName(
timeFieldName
)}))
| stats rows = count(*) by _timestamp_`
| stats rows = count(*) by _timestamp_
| LIMIT 1000`
);

const request = {
Expand Down

0 comments on commit 1a11d6a

Please sign in to comment.