Skip to content

Commit 7e0d8d7

Browse files
Add more UTs
1 parent 43aa7e1 commit 7e0d8d7

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

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

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4992,3 +4992,61 @@ null | null | fred | null | null
49924992
null | null | grault | null | null | false | null
49934993
null | null | waldo | null | null | false | 192.168.1.9
49944994
;
4995+
4996+
lookupJoinOnTwoFieldsWithEval
4997+
required_capability: join_lookup_v12
4998+
required_capability: lookup_join_on_multiple_fields
4999+
5000+
FROM multi_column_joinable
5001+
| eval id_int = id_int + 5
5002+
| LOOKUP JOIN multi_column_joinable_lookup ON id_int, is_active_bool
5003+
| KEEP id_int, name_str, extra1, other1, other2
5004+
| SORT id_int, name_str, extra1, other1, other2
5005+
;
5006+
5007+
id_int:integer | name_str:keyword | extra1:keyword | other1:keyword | other2:integer
5008+
6 | null | foo | iota | 9000
5009+
7 | Grace | bar | kappa | 10000
5010+
8 | Hank | baz | lambda | 11000
5011+
9 | null | qux | null | null
5012+
10 | null | quux | null | null
5013+
11 | null | corge | null | null
5014+
12 | null | grault | null | null
5015+
13 | null | garply | null | null
5016+
14 | null | waldo | null | null
5017+
15 | null | fred | null | null
5018+
17 | null | xyzzy | null | null
5019+
18 | null | thud | null | null
5020+
19 | null | foo2 | null | null
5021+
20 | null | bar2 | null | null
5022+
null | null | plugh | null | null
5023+
;
5024+
5025+
5026+
5027+
5028+
lookupJoinOnTwoFieldsAfterTop
5029+
required_capability: join_lookup_v12
5030+
required_capability: lookup_join_on_multiple_fields
5031+
5032+
FROM multi_column_joinable
5033+
| SORT extra1
5034+
| LIMIT 10
5035+
| LOOKUP JOIN multi_column_joinable_lookup ON id_int, is_active_bool
5036+
| KEEP id_int, name_str, extra1, other1, other2
5037+
| SORT id_int, name_str, extra1, other1, other2
5038+
;
5039+
5040+
id_int:integer | name_str:keyword | extra1:keyword | other1:keyword | other2:integer
5041+
1 | Alice | foo | alpha | 1000
5042+
1 | Alice | foo | beta | 2000
5043+
2 | Bob | bar | gamma | 3000
5044+
3 | Charlie | baz | delta | 4000
5045+
6 | null | corge | iota | 9000
5046+
7 | Grace | grault | kappa | 10000
5047+
8 | Hank | garply | lambda | 11000
5048+
10 | null | fred | null | null
5049+
14 | Nina | foo2 | omicron | 15000
5050+
15 | null | bar2 | null | null
5051+
null | null | plugh | null | null
5052+
;

0 commit comments

Comments
 (0)