Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
weijie.tong committed Feb 28, 2019
1 parent 4fda2df commit ac88b99
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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
Expand All @@ -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
Expand All @@ -148,7 +147,6 @@ public void testJoinWithDifferentTypesInCondition() throws Exception {
.baselineColumns("col1")
.baselineValues(4L)
.go();
*/
}

@Test //DRILL-2197 Left Join with complex type in projection
Expand Down

0 comments on commit ac88b99

Please sign in to comment.