2010YOUY01 commented on code in PR #26983:
URL: https://github.com/apache/datafusion/pull/26983#discussion_r4434636113


##########
datafusion/core/tests/fuzz_cases/sort_query_fuzz.rs:
##########
@@ -210,9 +211,10 @@ impl SortQueryFuzzer {
                     if expected_results.is_none() {
                         expected_results = Some(results);
                     } else if let Some(ref expected) = expected_results {
-                        // Every projected column is an ORDER BY key, so tied
-                        // rows have identical output and can be compared in 
order.
-                        assert_eq!(expected, &results);
+                        // Check logical equivalence.
+                        // `assert_eq!` may report false failures when 
logically equivalent
+                        // batches have different physical encodings.
+                        check_equality_of_batches(expected, &results).unwrap();

Review Comment:
   Thank you for the review! Addressed in 
[5d9ccac](https://github.com/apache/datafusion/pull/26983/commits/5d9ccacda7abc18e842b49fe27ed7ad9139df64a)



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