alamb commented on code in PR #4249:
URL: https://github.com/apache/arrow-datafusion/pull/4249#discussion_r1025069978
##########
datafusion/sql/src/planner.rs:
##########
@@ -2314,11 +2314,11 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
SQLExpr::Nested(e) => self.sql_expr_to_logical_expr(*e, schema,
ctes),
- SQLExpr::Exists { subquery, negated } =>
self.parse_exists_subquery(&subquery, negated, schema, ctes),
+ SQLExpr::Exists { subquery, negated } =>
self.parse_exists_subquery(*subquery, negated, schema, ctes),
Review Comment:
it already has an owned copy -- there is no reason to pass in a reference to
just clone it again
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]