Skip to content

Commit ef99adf

Browse files
Updating tests
1 parent a129478 commit ef99adf

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

datafusion/src/logical_plan/expr.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -942,11 +942,7 @@ impl std::fmt::Display for Expr {
942942
ref right,
943943
ref op,
944944
} => write!(f, "{} {} {}", left, op, right),
945-
<<<<<<< HEAD
946945
_ => write!(f, "{:?}", self),
947-
=======
948-
_ => write!(f, "{}", ""),
949-
>>>>>>> 8f0d241cc40ae602bf365b92890b5e6c9b7cbf3b
950946
}
951947
}
952948
}

datafusion/src/sql/planner.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2332,8 +2332,8 @@ mod tests {
23322332
GROUP BY first_name
23332333
HAVING max_age_plus_one > 100";
23342334
let expected =
2335-
"Projection: #person.first_name, #MAX(person.age) Plus Int64(1) AS max_age_plus_one\
2336-
\n Filter: #MAX(person.age) Plus Int64(1) Gt Int64(100)\
2335+
"Projection: #person.first_name, #MAX(person.age) + Int64(1) AS max_age_plus_one\
2336+
\n Filter: #MAX(person.age) + Int64(1) > Int64(100)\
23372337
\n Aggregate: groupBy=[[#person.first_name]], aggr=[[MAX(#person.age)]]\
23382338
\n TableScan: person projection=None";
23392339
quick_test(sql, expected);
@@ -2347,8 +2347,8 @@ mod tests {
23472347
GROUP BY first_name
23482348
HAVING MAX(age) > 100 AND MIN(id - 2) < 50";
23492349
let expected = "Projection: #person.first_name, #MAX(person.age)\
2350-
\n Filter: #MAX(person.age) Gt Int64(100) And #MIN(person.id Minus Int64(2)) Lt Int64(50)\
2351-
\n Aggregate: groupBy=[[#person.first_name]], aggr=[[MAX(#person.age), MIN(#person.id Minus Int64(2))]]\
2350+
\n Filter: #MAX(person.age) > Int64(100) AND #MIN(person.id Minus Int64(2)) < Int64(50)\
2351+
\n Aggregate: groupBy=[[#person.first_name]], aggr=[[MAX(#person.age), MIN(#person.id - Int64(2))]]\
23522352
\n TableScan: person projection=None";
23532353
quick_test(sql, expected);
23542354
}

0 commit comments

Comments
 (0)