coderfender commented on code in PR #20593:
URL: https://github.com/apache/datafusion/pull/20593#discussion_r2969850167


##########
datafusion/spark/src/function/math/ceil.rs:
##########
@@ -148,7 +148,7 @@ mod tests {
             None,
         ]);
         let args = vec![ColumnarValue::Array(Arc::new(input))];
-        let result = spark_ceil(&args, &DataType::Int64).unwrap();
+        let result = spark_ceil(&args).unwrap();

Review Comment:
   Never a good idea to unwrap in main code ! If you think an unsafe `unwrap` 
is needed, please add a comment why the code is safe enough for us to do that



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to