nealrichardson commented on a change in pull request #11162:
URL: https://github.com/apache/arrow/pull/11162#discussion_r709378627



##########
File path: r/tests/testthat/test-compute-no-bindings.R
##########
@@ -121,10 +121,16 @@ test_that("non-bound compute kernels using ModeOptions", {
 })
 
 test_that("non-bound compute kernels using PartitionNthOptions", {
-  expect_equal(
-    as.vector(call_function("partition_nth_indices", Array$create(c(1:10)), 
options = list(pivot = 5))),
-    c(1L, 0L, 4L, 3L, 2L, 5L, 6L, 7L, 8L, 9L)
+
+  result <- call_function(
+    "partition_nth_indices",
+    Array$create(c(11:20)),
+    options = list(pivot = 3)
   )
+

Review comment:
       ```suggestion
     # Order of indices on either side of the pivot is not deterministic
     # (depends on C++ standard library implementation)
   ```




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