Skip to content

Commit 2133e9a

Browse files
authored
Add a test of LOOKUP JOIN against a time series index (elastic#129007) (elastic#129075)
Add a spec test of `LOOKUP JOIN` against a time series index. (cherry picked from commit 10f355d)
1 parent 5f0afbc commit 2133e9a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/resources/lookup-join.csv-spec

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4479,6 +4479,37 @@ language_code_float:double | language_code_double:double | language_name:keyword
44794479
2.147483648E9 | 2.147483647E9 | max_int
44804480
;
44814481

4482+
lookupJoinOnTimeSeriesIndex
4483+
required_capability: join_lookup_v12
4484+
4485+
FROM k8s
4486+
| RENAME network.bytes_in AS language_code
4487+
| WHERE language_code < 10
4488+
| LOOKUP JOIN languages_lookup ON language_code
4489+
| DROP network*, event
4490+
| SORT language_code, @timestamp
4491+
;
4492+
4493+
@timestamp:date |client.ip:ip |cluster:keyword|language_code:long|pod:keyword |language_name:keyword
4494+
2024-05-10T00:17:14.000Z|10.10.20.35 |prod |0 |one |null
4495+
2024-05-10T00:07:33.000Z|10.10.20.32 |qa |1 |two |English
4496+
2024-05-10T00:20:00.000Z|10.10.20.35 |staging |1 |three |English
4497+
2024-05-10T00:18:02.000Z|10.10.20.33 |qa |2 |one |French
4498+
2024-05-10T00:04:49.000Z|10.10.20.34 |prod |3 |one |Spanish
4499+
2024-05-10T00:05:16.000Z|10.10.20.35 |prod |3 |one |Spanish
4500+
2024-05-10T00:05:58.000Z|10.10.20.30 |qa |3 |two |Spanish
4501+
2024-05-10T00:06:07.000Z|10.10.20.32 |staging |3 |two |Spanish
4502+
2024-05-10T00:07:19.000Z|10.10.20.32 |qa |3 |one |Spanish
4503+
2024-05-10T00:09:58.000Z|10.10.20.35 |prod |3 |one |Spanish
4504+
2024-05-10T00:16:55.000Z|10.10.20.32 |staging |3 |two |Spanish
4505+
2024-05-10T00:22:42.000Z|10.10.20.30 |staging |3 |three |Spanish
4506+
2024-05-10T00:22:49.000Z|10.10.20.34 |staging |3 |two |Spanish
4507+
2024-05-10T00:11:24.000Z|10.10.20.35 |qa |4 |two |German
4508+
2024-05-10T00:14:33.000Z|10.10.20.30 |prod |4 |two |German
4509+
2024-05-10T00:18:02.000Z|10.10.20.33 |staging |4 |one |German
4510+
2024-05-10T00:19:48.000Z|10.10.20.32 |prod |4 |three |German
4511+
;
4512+
44824513
###############################################
44834514
# LOOKUP JOIN on date_nanos field
44844515
###############################################

0 commit comments

Comments
 (0)