tadeja commented on code in PR #55759:
URL: https://github.com/apache/arrow/pull/55759#discussion_r4786550494


##########
python/pyarrow/tests/test_compute.py:
##########
@@ -3251,6 +3251,28 @@ def validate_select_k(select_k_indices, tbl, sort_keys, 
stable_sort=False):
         pc.select_k_unstable(table, k=k, sort_keys=[("unknown", "ascending", 
"at_end")])
 
 
+def test_top_k_bottom_k_sort_keys():
+    arr = pa.array([1, 2, None, 0])
+    table = pa.table({"a": [1, 2, 0], "b": [1, 0, 1]})

Review Comment:
   Perhaps also test with `None` value here.
   ```suggestion
       table = pa.table({"a": [1, None, 0], "b": [1, 0, 1]})
   ```



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