aocsa commented on a change in pull request #11132:
URL: https://github.com/apache/arrow/pull/11132#discussion_r706449722
##########
File path: cpp/src/arrow/compute/kernels/vector_sort.cc
##########
@@ -1855,19 +1854,25 @@ class ArraySelecter : public TypeVisitor {
ctx_(ctx),
array_(array),
k_(options.k),
+ order_(options.sort_keys[0].order),
Review comment:
the other XXXSelecters doesn't need these because for RecordBatch and
Table it's asume that there is more than two columns so there is not a global
order for all of them, each column has their own order determined in
options.sort_keys [(key_name, sort_order)].
--
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]