We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc8b2b8 commit b7c80a2Copy full SHA for b7c80a2
datafusion/sql/src/expr/mod.rs
@@ -94,14 +94,12 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
94
}) = *right
95
{
96
let left_span = match &*left {
97
- SQLExpr::Identifier(Ident { span, .. }) => {
98
- span.clone()
99
- }
+ SQLExpr::Identifier(Ident { span, .. }) => *span,
100
// In this case, we expect left to be
101
// Indentifier. Just to make the code
102
// more robust, we'll make left_span
103
// equals to null_span otherwise.
104
- _ => null_span.clone(),
+ _ => null_span,
105
};
106
let combined_span = Span {
107
start: Into::into(left_span.start),
0 commit comments