|
20 | 20 | import org.opensearch.sql.common.setting.Settings; |
21 | 21 | import org.opensearch.sql.executor.QueryType; |
22 | 22 |
|
| 23 | +@RunWith(MockitoJUnitRunner.class) |
23 | 24 | public class UnifiedQueryPlannerTest extends UnifiedQueryTestBase { |
24 | | -// @RunWith(MockitoJUnitRunner.class) |
25 | | -// public class UnifiedQueryPlannerTest { |
26 | | - |
27 | | -// /** Test schema consists of a test table with id and name columns */ |
28 | | -// private final AbstractSchema testSchema = |
29 | | -// new AbstractSchema() { |
30 | | -// @Override |
31 | | -// protected Map<String, Table> getTableMap() { |
32 | | -// return Map.of( |
33 | | -// "index", |
34 | | -// new AbstractTable() { |
35 | | -// @Override |
36 | | -// public RelDataType getRowType(RelDataTypeFactory typeFactory) { |
37 | | -// return typeFactory.createStructType( |
38 | | -// List.of( |
39 | | -// typeFactory.createSqlType(SqlTypeName.INTEGER), |
40 | | -// typeFactory.createSqlType(SqlTypeName.VARCHAR)), |
41 | | -// List.of("id", "name")); |
42 | | -// } |
43 | | -// }, |
44 | | -// "index2", |
45 | | -// new AbstractTable() { |
46 | | -// @Override |
47 | | -// public RelDataType getRowType(RelDataTypeFactory typeFactory) { |
48 | | -// return typeFactory.createStructType( |
49 | | -// List.of( |
50 | | -// typeFactory.createSqlType(SqlTypeName.INTEGER), |
51 | | -// typeFactory.createSqlType(SqlTypeName.FLOAT)), |
52 | | -// List.of("id", "value")); |
53 | | -// } |
54 | | -// } |
55 | | -// ); |
56 | | -// } |
57 | | -// }; |
58 | 25 |
|
59 | 26 | /** Test catalog consists of test schema above */ |
60 | 27 | private final AbstractSchema testDeepSchema = |
@@ -206,6 +173,6 @@ public void testJoinQuery() { |
206 | 173 | .settings(testSettings) |
207 | 174 | .build(); |
208 | 175 |
|
209 | | - planner.plan("source = index | join on index.id = index2.id index2"); |
| 176 | + planner.plan("source = employees | join on employees.id = payslips.id payslips"); |
210 | 177 | } |
211 | 178 | } |
0 commit comments