aucahuasi commented on a change in pull request #11159:
URL: https://github.com/apache/arrow/pull/11159#discussion_r710236079
##########
File path: cpp/src/arrow/compute/kernels/codegen_internal.cc
##########
@@ -194,6 +194,11 @@ Result<ValueDescr> FirstType(KernelContext*, const
std::vector<ValueDescr>& desc
return result;
}
+Result<ValueDescr> ListValuesType(KernelContext*, const
std::vector<ValueDescr>& args) {
+ const auto& list_type = checked_cast<const BaseListType&>(*args[0].type);
+ return ValueDescr::Array(list_type.value_type());
Review comment:
Thanks @lidavidm !
What would be the behavior for this function in the case of scalar inputs?
Can we move this part of the discussion into the [jira
ticket](https://issues.apache.org/jira/browse/ARROW-12669?focusedCommentId=17415119&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17415119)?
Maybe you can draw some examples there! cc @ianmcook
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]