Skip to content

Commit c44f8e8

Browse files
committed
fix clippy
1 parent 97c904b commit c44f8e8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/query/sql/src/planner/optimizer/rule/rewrite/rule_push_down_prewhere.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ impl RulePushDownPrewhere {
5656
fn collect_columns_impl(expr: &ScalarExpr, columns: &mut ColumnSet) -> Option<()> {
5757
match expr {
5858
ScalarExpr::BoundColumnRef(column) => {
59-
if column.column.table_name.is_none() {
60-
return None;
61-
}
59+
column.column.table_name.as_ref()?;
6260
columns.insert(column.column.index);
6361
Some(())
6462
}

0 commit comments

Comments
 (0)