@@ -1032,7 +1032,7 @@ public void testPushdownLimitsPastLeftJoin() {
10321032 var rightChild = new LocalRelation (Source .EMPTY , List .of (fieldAttribute ()), EmptyLocalSupplier .EMPTY );
10331033 assertNotEquals (leftChild , rightChild );
10341034
1035- var joinConfig = new JoinConfig (JoinTypes .LEFT , List .of (), List .of (), List . of (), null );
1035+ var joinConfig = new JoinConfig (JoinTypes .LEFT , List .of (), List .of (), null );
10361036 var join = switch (randomIntBetween (0 , 2 )) {
10371037 case 0 -> new Join (EMPTY , leftChild , rightChild , joinConfig );
10381038 case 1 -> new LookupJoin (EMPTY , leftChild , rightChild , joinConfig , false );
@@ -5819,7 +5819,7 @@ public void testDoubleInlinestatsWithEvalGetsPrunedEntirely() {
58195819 var ref = as (order .child (), FieldAttribute .class );
58205820 assertThat (ref .name (), is ("emp_no" ));
58215821 var inlineJoin = as (topN .child (), InlineJoin .class );
5822- assertThat (Expressions .names (inlineJoin .config ().matchFields ()), is (List .of ("salaryK" )));
5822+ assertThat (Expressions .names (inlineJoin .config ().leftFields ()), is (List .of ("salaryK" )));
58235823 // Left
58245824 var eval = as (inlineJoin .left (), Eval .class );
58255825 assertThat (Expressions .names (eval .fields ()), is (List .of ("salaryK" )));
@@ -5885,7 +5885,7 @@ public void testInlinestatsGetsPrunedPartially() {
58855885 assertThat (Expressions .names (project .projections ()), is (List .of ("x" , "a" , "emp_no" )));
58865886 var upperLimit = asLimit (project .child (), 1 , false );
58875887 var inlineJoin = as (upperLimit .child (), InlineJoin .class );
5888- assertThat (Expressions .names (inlineJoin .config ().matchFields ()), is (List .of ("emp_no" )));
5888+ assertThat (Expressions .names (inlineJoin .config ().leftFields ()), is (List .of ("emp_no" )));
58895889 // Left
58905890 var relation = as (inlineJoin .left (), EsRelation .class );
58915891 // Right
@@ -5914,7 +5914,7 @@ public void testTripleInlinestatsGetsPrunedPartially() {
59145914 assertThat (Expressions .names (project .projections ()), is (List .of ("x" , "a" , "emp_no" )));
59155915 var upperLimit = asLimit (project .child (), 1 , false );
59165916 var inlineJoin = as (upperLimit .child (), InlineJoin .class );
5917- assertThat (Expressions .names (inlineJoin .config ().matchFields ()), is (List .of ("emp_no" )));
5917+ assertThat (Expressions .names (inlineJoin .config ().leftFields ()), is (List .of ("emp_no" )));
59185918 // Left
59195919 var relation = as (inlineJoin .left (), EsRelation .class );
59205920 // Right
@@ -6214,7 +6214,7 @@ public void testInlinestatsWithLookupJoin() {
62146214 assertThat (order .nullsPosition (), equalTo (Order .NullsPosition .FIRST ));
62156215 assertThat (Expressions .name (order .child ()), equalTo ("abbrev" ));
62166216 var join = as (topN .child (), Join .class );
6217- assertThat (Expressions .names (join .config ().matchFields ()), is (List .of ("scalerank" )));
6217+ assertThat (Expressions .names (join .config ().leftFields ()), is (List .of ("scalerank" )));
62186218 var left = as (join .left (), EsRelation .class );
62196219 assertThat (left .concreteIndices (), is (Set .of ("airports" )));
62206220 var right = as (join .right (), EsRelation .class );
@@ -6249,7 +6249,7 @@ public void testInlinestatsWithAvg() {
62496249 assertThat (Expressions .names (esqlProject .projections ()), is (List .of ("avg" , "emp_no" , "first_name" )));
62506250 var upperLimit = asLimit (esqlProject .child (), 10 , false );
62516251 var inlineJoin = as (upperLimit .child (), InlineJoin .class );
6252- assertThat (Expressions .names (inlineJoin .config ().matchFields ()), is (List .of ("emp_no" )));
6252+ assertThat (Expressions .names (inlineJoin .config ().leftFields ()), is (List .of ("emp_no" )));
62536253 // Left
62546254 var relation = as (inlineJoin .left (), EsRelation .class );
62556255 // Right
@@ -6840,7 +6840,7 @@ public void testLookupSimple() {
68406840 assertThat (limit .limit ().fold (FoldContext .small ()), equalTo (1000 ));
68416841
68426842 assertThat (join .config ().type (), equalTo (JoinTypes .LEFT ));
6843- assertThat (join .config ().matchFields ().stream ().map (Object ::toString ).toList (), matchesList ().item (startsWith ("int{r}" )));
6843+ assertThat (join .config ().leftFields ().stream ().map (Object ::toString ).toList (), matchesList ().item (startsWith ("int{r}" )));
68446844 assertThat (join .config ().leftFields ().size (), equalTo (1 ));
68456845 assertThat (join .config ().rightFields ().size (), equalTo (1 ));
68466846 Attribute lhs = join .config ().leftFields ().get (0 );
@@ -6929,7 +6929,7 @@ public void testLookupStats() {
69296929 as (left .child (), EsRelation .class );
69306930
69316931 assertThat (join .config ().type (), equalTo (JoinTypes .LEFT ));
6932- assertThat (join .config ().matchFields ().stream ().map (Object ::toString ).toList (), matchesList ().item (startsWith ("int{r}" )));
6932+ assertThat (join .config ().leftFields ().stream ().map (Object ::toString ).toList (), matchesList ().item (startsWith ("int{r}" )));
69336933 assertThat (join .config ().leftFields ().size (), equalTo (1 ));
69346934 assertThat (join .config ().rightFields ().size (), equalTo (1 ));
69356935 Attribute lhs = join .config ().leftFields ().get (0 );
0 commit comments