Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
b89f498
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 10, 2025
6d8cc81
Update docs/changelog/136441.yaml
leontyevdv Oct 11, 2025
063f72b
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 11, 2025
e42b1ca
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 14, 2025
f4c694f
Merge branch 'main' into feature/esql-trange-function
leontyevdv Oct 14, 2025
5642817
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 14, 2025
736194e
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 15, 2025
ea9e431
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 15, 2025
e572f55
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 15, 2025
ec90dc5
Merge branch 'main' into feature/esql-trange-function
leontyevdv Oct 15, 2025
9b0aa07
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 15, 2025
af3c2d1
Merge branch 'main' into feature/esql-trange-function
leontyevdv Oct 15, 2025
2cc1cc0
Merge branch 'main' into feature/esql-trange-function
leontyevdv Oct 17, 2025
ab864d6
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 17, 2025
124bd86
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 17, 2025
a1b61c9
Merge branch 'main' into feature/esql-trange-function
leontyevdv Oct 17, 2025
051d0d0
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 17, 2025
74cf80b
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 20, 2025
e2f74bb
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 20, 2025
19c5d70
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 21, 2025
3e1848e
Merge branch 'main' into feature/esql-trange-function
leontyevdv Oct 21, 2025
98518c4
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 21, 2025
5566598
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 21, 2025
d94afe2
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 22, 2025
b3b9d16
Merge branch 'main' into feature/esql-trange-function
leontyevdv Oct 22, 2025
44e2d9f
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 22, 2025
2d606d6
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 22, 2025
58948b6
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 22, 2025
92a9591
Merge branch 'main' into feature/esql-trange-function
leontyevdv Oct 22, 2025
bf71cd1
[CI] Auto commit changes from spotless
Oct 22, 2025
16612b0
ES|QL: Add TRANGE ES|QL function
leontyevdv Oct 22, 2025
ddc4a54
Merge branch 'main' into feature/esql-trange-function
leontyevdv Oct 23, 2025
0917f77
Merge branch 'main' into feature/esql-trange-function
leontyevdv Oct 23, 2025
bb326e1
Merge branch 'main' into feature/esql-trange-function
leontyevdv Oct 23, 2025
c2a76e8
Merge branch 'main' into feature/esql-trange-function
leontyevdv Oct 23, 2025
60670fa
Merge branch 'main' into feature/esql-trange-function
leontyevdv Oct 23, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/changelog/136441.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 136441
summary: Add TRANGE ES|QL function
area: ES|QL
type: enhancement
issues:
- 135599

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
* [`DAY_NAME`](../../functions-operators/date-time-functions.md#esql-day_name)
* [`MONTH_NAME`](../../functions-operators/date-time-functions.md#esql-month_name)
* [`NOW`](../../functions-operators/date-time-functions.md#esql-now)
* [`TRANGE`](../../functions-operators/date-time-functions.md#esql-trange)
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ mapped_pages:
:::{include} ../_snippets/functions/layout/now.md
:::

:::{include} ../_snippets/functions/layout/trange.md
:::

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -295,3 +295,23 @@ events_received:integer | pod:keyword | time_bucket:datetime
0 | two | 2024-05-10T00:20:00.000Z
0 | two | 2024-05-10T00:22:00.000Z
;

trange_absolute_epoch_millis_with_aggregations
required_capability: ts_command_v0
required_capability: fn_trange

TS k8s
| WHERE TRANGE("2024-05-10T00:20:00.000Z", "2024-05-10T00:25:00.000Z")
| STATS events_received = max(absent_over_time(events_received)) BY pod, time_bucket = tbucket(1 minute)
| SORT time_bucket
| LIMIT 5
;
ignoreOrder:true

events_received:boolean | pod:keyword | time_bucket:datetime
false | one | 2024-05-10T00:20:00.000Z
false | three | 2024-05-10T00:20:00.000Z
false | three | 2024-05-10T00:21:00.000Z
false | two | 2024-05-10T00:20:00.000Z
true | one | 2024-05-10T00:21:00.000Z
;
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,26 @@ rate_bytes_in:double | cluster:keyword | region:keyword | time_bucket:datetime
5.4539153439153445 | prod | [eu, us] | 2024-05-10T00:00:00.000Z
5.241187469367376 | staging | us | 2024-05-10T00:00:00.000Z
;

trange_absolute_with_rate
required_capability: ts_command_v0
required_capability: fn_trange

TS k8s
| WHERE TRANGE("2024-05-10T00:15:00.000Z", "2024-05-10T00:25:00.000Z")
| STATS rate_bytes_in=AVG(RATE(network.total_bytes_in)) BY cluster, time_bucket = TBUCKET(2minute)
| SORT rate_bytes_in NULLS FIRST, time_bucket, cluster
| LIMIT 10;

rate_bytes_in:double | cluster:keyword | time_bucket:datetime
null | prod | 2024-05-10T00:14:00.000Z
null | staging | 2024-05-10T00:14:00.000Z
null | qa | 2024-05-10T00:22:00.000Z
0.0371323529411787 | staging | 2024-05-10T00:22:00.000Z
2.27097222222222 | qa | 2024-05-10T00:20:00.000Z
5.374305555555554 | staging | 2024-05-10T00:16:00.000Z
7.513221153846155 | staging | 2024-05-10T00:20:00.000Z
9.45 | prod | 2024-05-10T00:20:00.000Z
9.83125 | prod | 2024-05-10T00:22:00.000Z
10.525 | staging | 2024-05-10T00:18:00.000Z
;
Loading
Loading