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 2019/01/08 18:41:00 UTC

[jira] [Created] (ARROW-4203) [Gandiva] use aliases when building expressions to simplify tests

Pindikura Ravindra created ARROW-4203:
-----------------------------------------

             Summary: [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: Gandiva
            Reporter: Pindikura Ravindra


{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
(v7.6.3#76005)