diff --git a/exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/join/TestHashJoinAdvanced.java b/exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/join/TestHashJoinAdvanced.java index d424f3ddc76..da51c9592d3 100644 --- a/exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/join/TestHashJoinAdvanced.java +++ b/exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/join/TestHashJoinAdvanced.java @@ -112,7 +112,6 @@ public void testRightJoinWithMap() throws Exception { @Test public void testJoinWithDifferentTypesInCondition() throws Exception { - /** String query = "select t1.full_name from cp.`employee.json` t1, cp.`department.json` t2 " + "where cast(t1.department_id as double) = t2.department_id and t1.employee_id = 1"; @@ -123,9 +122,9 @@ public void testJoinWithDifferentTypesInCondition() throws Exception { .baselineColumns("full_name") .baselineValues("Sheri Nowmer") .go(); -*/ - String query = "select t1.bigint_col from cp.`jsoninput/implicit_cast_join_1.json` t1, cp.`jsoninput/implicit_cast_join_1.json` t2 " + + + query = "select t1.bigint_col from cp.`jsoninput/implicit_cast_join_1.json` t1, cp.`jsoninput/implicit_cast_join_1.json` t2 " + " where t1.bigint_col = cast(t2.bigint_col as int) and" + // join condition with bigint and int " t1.double_col = cast(t2.double_col as float) and" + // join condition with double and float " t1.bigint_col = cast(t2.bigint_col as double)"; // join condition with bigint and double @@ -137,7 +136,7 @@ public void testJoinWithDifferentTypesInCondition() throws Exception { .baselineColumns("bigint_col") .baselineValues(1L) .go(); -/** + query = "select count(*) col1 from " + "(select t1.date_opt from cp.`parquet/date_dictionary.parquet` t1, cp.`parquet/timestamp_table.parquet` t2 " + "where t1.date_opt = t2.timestamp_col)"; // join condition contains date and timestamp @@ -148,7 +147,6 @@ public void testJoinWithDifferentTypesInCondition() throws Exception { .baselineColumns("col1") .baselineValues(4L) .go(); - */ } @Test //DRILL-2197 Left Join with complex type in projection