Skip to content

Commit afc53a3

Browse files
Integration tests for LOOKUP JOIN over wider range of data types (#126150)
This test suite tests the lookup join functionality in ESQL with various data types. For each pair of types being tested, it builds a main index called "index" containing a single document with as many fields as types being tested on the left of the pair, and then creates that many other lookup indexes, each with a single document containing exactly two fields: the field to join on, and a field to return. The assertion is that for valid combinations, the return result should exist, and for invalid combinations an exception should be thrown. If no exception is thrown, and no result is returned, our validation rules are not aligned with the internal behaviour (ie. a bug). Since the `LOOKUP JOIN` command requires the match field name to be the same between the main index and the lookup index, we will have field names that correctly represent the type of the field in the main index, but not the type of the field in the lookup index. This can be confusing, but it is important to remember that the field names are not the same as the types.
1 parent a2fc1ca commit afc53a3

File tree

3 files changed

+596
-2
lines changed

3 files changed

+596
-2
lines changed

x-pack/plugin/esql/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ dependencies {
5353
testImplementation project(path: xpackModule('enrich'))
5454
testImplementation project(path: xpackModule('spatial'))
5555
testImplementation project(path: xpackModule('kql'))
56+
testImplementation project(path: xpackModule('mapper-unsigned-long'))
5657

5758
testImplementation project(path: ':modules:reindex')
5859
testImplementation project(path: ':modules:parent-join')

0 commit comments

Comments
 (0)