MCPcopy Create free account
hub / github.com/apache/arrow / MakeIf

Method MakeIf

cpp/src/gandiva/tree_expr_builder.cc:126–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126NodePtr TreeExprBuilder::MakeIf(NodePtr condition, NodePtr then_node, NodePtr else_node,
127 DataTypePtr result_type) {
128 if (condition == nullptr || then_node == nullptr || else_node == nullptr ||
129 result_type == nullptr) {
130 return nullptr;
131 }
132 return std::make_shared<IfNode>(condition, then_node, else_node, result_type);
133}
134
135NodePtr TreeExprBuilder::MakeAnd(const NodeVector& children) {
136 return std::make_shared<BooleanNode>(BooleanNode::AND, children);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected