Skip to content

Commit 012cb0b

Browse files
committed
Simplify test
Signed-off-by: Lorenzo Stella <stellalo@amazon.de>
1 parent 6eb41e9 commit 012cb0b

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.List;
1312
import java.util.Map;
@@ -202,18 +201,13 @@ public void testPlanPropagatingSyntaxCheckException() {
202201

203202
@Test
204203
public void testJoinQuery() {
205-
when(testSettings.getSettingValue(Settings.Key.CALCITE_SUPPORT_ALL_JOIN_TYPES))
206-
.thenReturn(true);
207-
208204
UnifiedQueryPlanner planner = UnifiedQueryPlanner.builder()
209205
.language(QueryType.PPL)
210206
.catalog("opensearch", testSchema)
211207
.defaultNamespace("opensearch")
212208
.settings(testSettings)
213209
.build();
214210

215-
planner.plan(
216-
"source = index | join on index.id = index2.id index2"
217-
);
211+
planner.plan("source = index | join on index.id = index2.id index2");
218212
}
219213
}

0 commit comments

Comments
 (0)