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

Function if

cpp/src/arrow/engine/substrait/relation_internal.cc:642–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640 project_field = field(expr_call->function_name,
641 expr_call->kernel->signature->out_type().type());
642 } else if (auto* field_ref = des_expr.field_ref()) {
643 ARROW_ASSIGN_OR_RAISE(FieldPath field_path,
644 field_ref->FindOne(*input.output_schema));
645 ARROW_ASSIGN_OR_RAISE(project_field, field_path.Get(*input.output_schema));
646 } else if (auto* literal = des_expr.literal()) {
647 project_field = field("field_" + ToChars(num_columns + i), literal->type());
648 }
649 ARROW_ASSIGN_OR_RAISE(

Callers

nothing calls this directly

Calls 7

ToCharsFunction · 0.85
field_refMethod · 0.80
literalMethod · 0.80
ARROW_ASSIGN_OR_RAISEFunction · 0.70
fieldFunction · 0.50
GetMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected