Open viadea opened 2 years ago
This is going to be difficult because of the lambda. We would really need to have CUDF support this probably using AST, or we are going to have to special case the default ordering lambda expression and use the built in sort that exists.
I filed https://github.com/rapidsai/cudf/issues/11162 as the majority of the CUDF request.
I filed https://github.com/rapidsai/cudf/issues/11163 to help us implement/run a number of these commands as written.
We really should be looking at doing some pattern matching as well. Especially for the default case, which I think is the most common.
Can we just partially support array_sort
without lambda (i.e., only use the default comparison behavior)? By doing so we can just call libcudf sort_lists
.
+1, this expression is also used in Scale Test Query40.
update: I'm going to do what ttnghia said, partially support it without lambda first.
I wish we can support array_sort
eg: