Skip to content

Commit 646f378

Browse files
committed
Add csv test for LU JOIN with union types
1 parent 35ed8ea commit 646f378

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,28 @@ language.id:integer | language.name:text | language.name.keyword:keyword | langu
732732
2 | French | French | FR
733733
;
734734

735+
###############################################
736+
# union type behavior
737+
###############################################
738+
739+
joinOnMultiTypedMatchFieldCastToInteger
740+
required_capability: join_lookup_v12
741+
742+
FROM apps, apps_short METADATA _index
743+
| EVAL language_code = id::integer
744+
| KEEP _index, language_code
745+
| WHERE language_code < 3
746+
| LOOKUP JOIN languages_lookup ON language_code
747+
| SORT _index ASC, language_code ASC
748+
;
749+
750+
_index:keyword | language_code:integer | language_name:keyword
751+
apps | 1 | English
752+
apps | 2 | French
753+
apps_short | 1 | English
754+
apps_short | 2 | French
755+
;
756+
735757
###############################################
736758
# Tests with clientips_lookup index
737759
###############################################

0 commit comments

Comments
 (0)