Uh oh!
There was an error while loading. Please reload this page.
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 into
Conversation
If it does not makes sense to invoke Although, client code can still provide an invalid value of |
aocsa
commented
Sep 15, 2021
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
8c03a44Compareedponce
commented
Sep 16, 2021
@aocsa I see...thanks for the response. Maybe at some point in the future a more flexible form of |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
aocsa
commented
Sep 16, 2021
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
4a4ba20Compareaocsa
commented
Sep 17, 2021
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. @jorisvandenbosscheClosesapache#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