-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-14003: [C++][Python] Not providing a sort_key in the "select_k_unstable" kernel crashes #11164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
lidavidm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fixes.
…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