[ 
https://issues.apache.org/jira/browse/ARROW-4203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17661227#comment-17661227
 ] 

Rok Mihevc commented on ARROW-4203:
-----------------------------------

This issue has been migrated to [issue 
#20783|https://github.com/apache/arrow/issues/20783] on GitHub. Please see the 
[migration documentation|https://github.com/apache/arrow/issues/14542] for 
further details.

> [Gandiva] use aliases when building expressions to simplify tests
> -----------------------------------------------------------------
>
>                 Key: ARROW-4203
>                 URL: https://issues.apache.org/jira/browse/ARROW-4203
>             Project: Apache Arrow
>          Issue Type: Task
>          Components: C++ - Gandiva
>            Reporter: Pindikura Ravindra
>            Priority: Major
>
> {code:java}
> // code placeholder
> auto node_c = TreeExprBuilder::MakeField(field_c);
> auto if_node = TreeExprBuilder::MakeIf(node_c, node_a, node_b, decimal_type);
> auto expr = TreeExprBuilder::MakeExpression(if_node, field_result);
> {code}
> @wesm suggested that code like the above can be simplified with aliases :
> {code:java}
> gandiva::expr(gandiva::if_(gandiva::field(...)){code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to