chenkovsky commented on code in PR #15667:
URL: https://github.com/apache/datafusion/pull/15667#discussion_r2042084363


##########
datafusion/functions-aggregate/src/min_max.rs:
##########
@@ -610,10 +611,57 @@ fn min_batch(values: &ArrayRef) -> Result<ScalarValue> {
                 min_binary_view
             )
         }
+        DataType::Struct(_) => min_max_batch_struct(values, 
Ordering::Greater)?,
         _ => min_max_batch!(values, min),
     })
 }
 
+fn min_max_batch_struct(array: &ArrayRef, ordering: Ordering) -> 
Result<ScalarValue> {

Review Comment:
   I updated partial_cmp_struct to make it more clear.



-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to