You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Pindikura Ravindra (Jira)" <ji...@apache.org> on 2020/04/13 07:32:00 UTC
[jira] [Commented] (ARROW-8405) [Gandiva][UDF] Support complex
datatype for UDF return type.
[ https://issues.apache.org/jira/browse/ARROW-8405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17082131#comment-17082131 ]
Pindikura Ravindra commented on ARROW-8405:
-------------------------------------------
gandiva doesn't support complex types yet.
# For output, the following will need to be fixed
** [Allocating|https://github.com/apache/arrow/blob/master/cpp/src/gandiva/projector.cc#L172] output vector for project
** populating output vector in [codegen|https://github.com/apache/arrow/blob/master/cpp/src/gandiva/llvm_generator.cc#L368]
# For input, the following will need to be fixed
** loading entry from input vector in codegen. This is currently implemented as a [visitor|https://github.com/apache/arrow/blob/master/cpp/src/gandiva/expr_decomposer.cc#L42] but the visitor only supports primitive types.
It will be easier to add support for primitive fields inside complex types to begin with (eg. integer field inside a struct type).
> [Gandiva][UDF] Support complex datatype for UDF return type.
> ------------------------------------------------------------
>
> Key: ARROW-8405
> URL: https://issues.apache.org/jira/browse/ARROW-8405
> Project: Apache Arrow
> Issue Type: New Feature
> Components: C++ - Gandiva
> Reporter: ZMZ91
> Priority: Critical
>
> Is it possible to return a complex datatype for a UDF, like vector or event dictionary? Checked [https://github.com/apache/arrow/blob/master/cpp/src/gandiva/precompiled/types.h] and found the types used there are all basic datatypes.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)