Skip to content

Commit b283946

Browse files
committed
Update tests 3
1 parent f189d9a commit b283946

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

datafusion/optimizer/src/push_down_filter.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,6 @@ mod tests {
10561056
// filter is before projection
10571057
let expected = "\
10581058
Projection: test.a AS b, test.c\
1059-
\n Filter: test.a = Int64(1)\
10601059
\n TableScan: test, full_filters=[test.a = Int64(1)]";
10611060
assert_optimized_plan_eq(&plan, expected)
10621061
}
@@ -1281,8 +1280,7 @@ mod tests {
12811280
Filter: SUM(test.c) > Int64(10)\
12821281
\n Aggregate: groupBy=[[b]], aggr=[[SUM(test.c)]]\
12831282
\n Projection: test.a AS b, test.c\
1284-
\n Filter: test.a > Int64(10)\
1285-
\n TableScan: test";
1283+
\n TableScan: test, full_filters=[test.a > Int64(10)]";
12861284
assert_optimized_plan_eq(&plan, expected)
12871285
}
12881286

@@ -2664,7 +2662,7 @@ Projection: a, b
26642662
\n Projection: test1.a, test1.b\
26652663
\n TableScan: test1\
26662664
\n Projection: test2.a, test2.b\
2667-
\n TableScan: test2, full_filters=[test2.b > UInt32(2)] ";
2665+
\n TableScan: test2, full_filters=[test2.b > UInt32(2)]";
26682666
assert_optimized_plan_eq(&plan, expected)
26692667
}
26702668

datafusion/optimizer/src/push_down_projection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ mod tests {
981981
let table_scan = table_scan_with_filters(
982982
Some("test"),
983983
&schema,
984-
Some(vec![2]),
984+
None,
985985
vec![col("b").eq(lit(1))],
986986
)?
987987
.build()?;

0 commit comments

Comments
 (0)