elasticsearch/docs/reference/esql
Mark Tozzi 1224db91d5
[ESQL] clean up date trunc tests (#116111) (#116179)
While working on #110008 I discovered that the Date Trunc tests were only running in folding mode, because the interval types are marked as not representable. The correct way to test this is to set the forceLiteral flag for those fields, which will (as the name suggests) force them to be literals even in non-folding tests.

Doing that turned up errors in the evaluatorToString tests, which I fixed. There are two big changes here. First, the second parameter to the evaluator is a Rounding instance, not the actual interval. Since Rounding includes some information about the specific rounding in the toString results, I am just using a starts with matcher to validate the majority of the string, rather than trying to reconstruct the expected rounding string. Second, passing in a literal null for the interval parameter folds the whole expression to null, and thus a completely different toString. I added a clause in AnyNullIsNull to account for this.

While I was in there, I moved some specific test cases to a different file. I know moving code is something we're trying to minimize right now, but this seemed worth it. The tests in question do not depend on the parameters of the test case, but all methods in the class get run for every set of parameters. This was causing these tests to be run many times with the same values, which bloats our test run time and test count. Moving them to a distinct class means they'll only be executed once per test run. I feel like this benefit outweighs the cost of git history complexity.
2024-11-05 02:32:08 +11:00
..
functions [ESQL] clean up date trunc tests (#116111) (#116179) 2024-11-05 02:32:08 +11:00
processing-commands [DOCS][ESQL] Include bucket in agg functions list (#112513) 2024-09-05 11:43:20 +02:00
source-commands ESQL: Validate unique plan attribute names (#110488) 2024-07-17 11:39:02 +02:00
esql-across-clusters.asciidoc CCS metadata is opt-in in ESQL JSON responses (#114437) (#114688) 2024-10-13 14:49:17 -04:00
esql-apis.asciidoc (Doc+) Link API doc to parent object - part1 (#111951) 2024-08-20 14:58:18 -06:00
esql-async-query-api.asciidoc Remove esql version from docs (#108933) 2024-05-23 10:36:15 -04:00
esql-async-query-delete-api.asciidoc (Doc+) Link API doc to parent object - part1 (#111951) 2024-08-20 14:58:18 -06:00
esql-async-query-get-api.asciidoc Add ES|QL async query api docs (#104054) 2024-01-09 09:17:02 +00:00
esql-commands.asciidoc ESQL: INLINESTATS (#109583) 2024-07-24 17:16:37 -04:00
esql-enrich-data.asciidoc [DOCS] Refactor book-scoped variables in docs/reference/index.asciidoc (#107413) 2024-04-17 14:37:07 +02:00
esql-examples.asciidoc [DOCS] Small ES|QL improvements (#101877) 2023-11-07 17:24:59 +01:00
esql-functions-operators.asciidoc ES|QL Add full-text search to the functions docs page (#116024) 2024-11-01 12:08:48 +00:00
esql-get-started.asciidoc Revert "[DOCS] Remove ESQL demo env link from 8.14+ (#109562)" (#109579) 2024-06-11 17:04:37 +02:00
esql-kibana.asciidoc Document ?_tstart and ?_tend in Kibana (#114965) (#115786) 2024-10-29 02:50:35 +11:00
esql-language.asciidoc ESQL: Remove OPTIONS clause in FROM command (#108692) 2024-05-15 18:15:02 -04:00
esql-limitations.asciidoc ES|QL Add full-text search to the functions docs page (#116024) 2024-11-01 12:08:48 +00:00
esql-multi-index.asciidoc ESQL: Fix for overzealous validation in case of invalid mapped fields (#111475) 2024-08-09 09:38:14 +02:00
esql-process-data-with-dissect-grok.asciidoc ES|QL: improve docs about escaping for GROK, DISSECT, LIKE, RLIKE (#115320) (#115493) 2024-10-24 19:14:57 +11:00
esql-query-api.asciidoc CCS metadata is opt-in in ESQL JSON responses (#114437) (#114688) 2024-10-13 14:49:17 -04:00
esql-rest.asciidoc Collect and display execution metadata for ES|QL cross cluster searches (#112595) (#113820) 2024-10-01 08:02:58 +10:00
esql-security-solution.asciidoc Update esql-security-solution.asciidoc (#104531) 2024-01-18 15:48:43 +01:00
esql-syntax.asciidoc ESQL: Add more time span units (#108300) 2024-05-08 08:51:02 -04:00
esql-using.asciidoc Union types documentation (#110183) 2024-07-16 12:06:19 +02:00
implicit-casting.asciidoc [DOCS] ES|QL implicit casting (#108618) 2024-05-15 09:07:09 -04:00
index.asciidoc [DOCS] ESQL goes GA (#108342) 2024-05-07 14:12:50 +02:00
metadata-fields.asciidoc Reapply "ESQL: Expose "_ignored" metadata field" (#108864) (#108871) 2024-05-22 07:06:04 -04:00
multivalued-fields.asciidoc Docs: ESQL doesn't preserve nulls in a list (#114335) (#114339) 2024-10-09 03:53:24 +11:00
task-management.asciidoc [DOCS] One more round of restructuring the ES|QL documentation (#101340) 2023-10-26 10:57:05 +02:00