xudong963 commented on a change in pull request #1395:
URL: https://github.com/apache/arrow-datafusion/pull/1395#discussion_r761804805



##########
File path: datafusion/src/sql/parser.rs
##########
@@ -85,7 +85,7 @@ pub struct CreateExternalTable {
 #[derive(Debug, Clone, PartialEq)]
 pub enum Statement {
     /// ANSI SQL AST node
-    Statement(SQLStatement),
+    Statement(Box<SQLStatement>),

Review comment:
       
https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant

##########
File path: datafusion/src/physical_plan/datetime_expressions.rs
##########
@@ -77,7 +78,10 @@ where
         })?;
 
     // first map is the iterator, second is for the `Option<_>`
-    array.iter().map(|x| x.map(|x| op(x)).transpose()).collect()
+    array

Review comment:
       
https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

##########
File path: datafusion/src/scalar.rs
##########
@@ -68,7 +68,7 @@ pub enum ScalarValue {
     /// large binary
     LargeBinary(Option<Vec<u8>>),
     /// list of nested ScalarValue (boxed to reduce size_of(ScalarValue))
-    #[allow(clippy::box_vec)]
+    #[allow(clippy::box_collection)]

Review comment:
       https://rust-lang.github.io/rust-clippy/master/index.html#box_collection




-- 
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]


Reply via email to