Uh oh!
There was an error while loading. Please reload this page.
ARROW-12669:[C++][Python] Implement a new scalar function: list_element - #11159
ARROW-12669:[C++][Python] Implement a new scalar function: list_element#11159aucahuasi wants to merge 1 commit into
Conversation
aucahuasi
commented
Sep 14, 2021
Tomorrow I'll work on the python and R bindings for this new function |
91f1638 to
b38ee7eComparelidavidm
commented
Sep 15, 2021
Just a quick thought, why is this a vector kernel instead of a scalar one? (Though with one input it's maybe not a big difference.) |
lidavidm
commented
Sep 15, 2021
Oh wait nevermind, the index here is a parameter and not an options. |
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.
nealrichardson
commented
Sep 15, 2021
I think it has to be a scalar kernel if we want to be able to call it in a projection node, which is why we're doing this now--right? |
lidavidm
commented
Sep 15, 2021
Ah, right - plus expressions aren't evaluatable unless they're scalar: arrow/cpp/src/arrow/compute/exec/expression.cc Lines 503 to 506 in 9cf2372 I think most kernels like this pass the second argument via options, not as an argument. I was also debating whether to comment about this, but might as well: there's no need to generate kernels for different index types, especially if we just make the index an option instead of a parameter. (It'll also limit the number of special cases to account for in type coverage testing.) |
jorisvandenbossche
commented
Sep 15, 2021
Why can't this be a scalar kernel while still having |
Uh oh!
There was an error while loading. Please reload this page.
lidavidm
commented
Sep 15, 2021
Ah, you're right. So this should just be a scalar kernel, then. |
ea560fa to
954ca3eCompareUh 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.
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
954ca3e to
6201ebfCompare
lidavidm
left a comment
There was a problem hiding this comment.
Thanks! This looks good to me, I just left one note - the scalar kernel doesn't need to be templated on the list type, so you can save yourself some generated code there.
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.
6201ebf to
2a207d5CompareUh 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.
2a207d5 to
5b899d6CompareUh 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.
add python test and C++ docs for the new function: list_element convert list_element into a scalar function minor changes format support scalar inputs for list_element, improve tests minor changes less generated code thanks to some template tricks less generated code, again using template tricks
5b899d6 to
2369457CompareUh oh!
There was an error while loading. Please reload this page.
edponce
left a comment
There was a problem hiding this comment.
Thanks for resolving this issue!
https://issues.apache.org/jira/browse/ARROW-12669Closesapache#11159 from aucahuasi/return-array-for-each-list-in-array Authored-by: Percy Camilo Triveño Aucahuasi <percy.camilo.ta@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>
https://issues.apache.org/jira/browse/ARROW-12669