ARROW-14003: [C++][Python] Not providing a sort_key in the "select_k_unstable" kernel crashes#11164
ARROW-14003: [C++][Python] Not providing a sort_key in the "select_k_unstable" kernel crashes#11164aocsa wants to merge 1 commit intoapache:masterfrom
Conversation
|
If it does not makes sense to invoke Although, client code can still provide an invalid value of |
You are right, however there is a requirement to have a default constructor enabled to implement copy here: I think this was a a design decision to implement a general copy method with the registered properties. |
662b966 to
8c03a44
Compare
|
@aocsa I see...thanks for the response. Maybe at some point in the future a more flexible form of |
jorisvandenbossche
left a comment
There was a problem hiding this comment.
I am personally fine with the "top_k" / "bottom_k" specializations of "select_k" (it makes it more convenient to use), but I am wondering whether, if we want those, we shouldn't rather add them in C++? Because now those kernels are python specific, and eg also won't work in a query execution context.
In previous review at #11019, there was a common agreement to expose just one general API. However we can add these specialization in a follow-up PR which implements |
e01ae18 to
4a4ba20
Compare
|
I Think this PR is ready to be merged |
…unstable" kernel crashes This is a minor fix for issue ARROW-14003. Moreover I added some function (topK/bottomK) specialization in arrow/compute.py. @jorisvandenbossche Closes apache#11164 from aocsa/aocsa/ARROW-14003 Authored-by: Alexander <aocsa.cs@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>
This is a minor fix for issue ARROW-14003. Moreover I added some function (topK/bottomK) specialization in arrow/compute.py.
@jorisvandenbossche