Skip to content

Commit

Permalink
Updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmturner committed Sep 10, 2021
1 parent a129478 commit ef99adf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions datafusion/src/logical_plan/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -942,11 +942,7 @@ impl std::fmt::Display for Expr {
ref right,
ref op,
} => write!(f, "{} {} {}", left, op, right),
<<<<<<< HEAD
_ => write!(f, "{:?}", self),
=======
_ => write!(f, "{}", ""),
>>>>>>> 8f0d241cc40ae602bf365b92890b5e6c9b7cbf3b
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions datafusion/src/sql/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2332,8 +2332,8 @@ mod tests {
GROUP BY first_name
HAVING max_age_plus_one > 100";
let expected =
"Projection: #person.first_name, #MAX(person.age) Plus Int64(1) AS max_age_plus_one\
\n Filter: #MAX(person.age) Plus Int64(1) Gt Int64(100)\
"Projection: #person.first_name, #MAX(person.age) + Int64(1) AS max_age_plus_one\
\n Filter: #MAX(person.age) + Int64(1) > Int64(100)\
\n Aggregate: groupBy=[[#person.first_name]], aggr=[[MAX(#person.age)]]\
\n TableScan: person projection=None";
quick_test(sql, expected);
Expand All @@ -2347,8 +2347,8 @@ mod tests {
GROUP BY first_name
HAVING MAX(age) > 100 AND MIN(id - 2) < 50";
let expected = "Projection: #person.first_name, #MAX(person.age)\
\n Filter: #MAX(person.age) Gt Int64(100) And #MIN(person.id Minus Int64(2)) Lt Int64(50)\
\n Aggregate: groupBy=[[#person.first_name]], aggr=[[MAX(#person.age), MIN(#person.id Minus Int64(2))]]\
\n Filter: #MAX(person.age) > Int64(100) AND #MIN(person.id Minus Int64(2)) < Int64(50)\
\n Aggregate: groupBy=[[#person.first_name]], aggr=[[MAX(#person.age), MIN(#person.id - Int64(2))]]\
\n TableScan: person projection=None";
quick_test(sql, expected);
}
Expand Down

0 comments on commit ef99adf

Please sign in to comment.