Skip to content

Commit c17afdf

Browse files
committed
Simplify test
Signed-off-by: Lorenzo Stella <stellalo@amazon.de>
1 parent 1a0dd07 commit c17afdf

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

api/src/test/java/org/opensearch/sql/api/UnifiedQueryPlannerTest.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import static org.junit.Assert.assertNotNull;
99
import static org.junit.Assert.assertThrows;
10-
import static org.mockito.Mockito.when;
1110

1211
import java.util.Map;
1312
import org.apache.calcite.rel.RelNode;
@@ -199,18 +198,13 @@ public void testPlanPropagatingSyntaxCheckException() {
199198

200199
@Test
201200
public void testJoinQuery() {
202-
when(testSettings.getSettingValue(Settings.Key.CALCITE_SUPPORT_ALL_JOIN_TYPES))
203-
.thenReturn(true);
204-
205201
UnifiedQueryPlanner planner = UnifiedQueryPlanner.builder()
206202
.language(QueryType.PPL)
207203
.catalog("opensearch", testSchema)
208204
.defaultNamespace("opensearch")
209205
.settings(testSettings)
210206
.build();
211207

212-
planner.plan(
213-
"source = index | join on index.id = index2.id index2"
214-
);
208+
planner.plan("source = index | join on index.id = index2.id index2");
215209
}
216210
}

0 commit comments

Comments
 (0)