This repository was archived by the owner on Nov 7, 2025. It is now read-only.
Commit e0bcceb
authored
Add
Recently, there was a regression caused by a bug in `splitTimeRangeExt`
optimization (see #1454), which splits queries with long time ranges.
Our unit/integration tests failed to catch the issue. The reproducer for
the issue is to run a `_search` query: sorted by time, over some time
range and with a filter.
This PR adds a new integration test. This test runs the reproducing
query (`_search` query: sorted by time, over some time range and with a
filter), as well as different variations of the query: short/long time
range, with/without filter, inclusive/exclusive ends of time range. This
should cover the `splitTimeRangeExt` optimization more thoroughly.
There are two types of tests:
- `testTimerangesHandwritten`: handwritten different queries
- `testTimerangesRandom`: randomly generated rangessplit_time_range integration test (#1455)1 parent a570d42 commit e0bcceb
File tree
3 files changed
+476
-0
lines changed- ci/it
- configs
- testcases
3 files changed
+476
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
0 commit comments