Skip to content

Commit

Permalink
explicitly list out all Expr types (apache#9038)
Browse files Browse the repository at this point in the history
  • Loading branch information
guojidan authored Jan 29, 2024
1 parent 724a8e8 commit 851bc7d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion datafusion/optimizer/src/analyzer/type_coercion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,22 @@ impl TreeNodeRewriter for TypeCoercionRewriter {
));
Ok(expr)
}
expr => Ok(expr),
Expr::Alias(_)
| Expr::Column(_)
| Expr::ScalarVariable(_, _)
| Expr::Literal(_)
| Expr::SimilarTo(_)
| Expr::IsNotNull(_)
| Expr::IsNull(_)
| Expr::Negative(_)
| Expr::GetIndexedField(_)
| Expr::Cast(_)
| Expr::TryCast(_)
| Expr::Sort(_)
| Expr::Wildcard { .. }
| Expr::GroupingSet(_)
| Expr::Placeholder(_)
| Expr::OuterReferenceColumn(_, _) => Ok(expr),
}
}
}
Expand Down

0 comments on commit 851bc7d

Please sign in to comment.