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

Function CaseWhen

cpp/src/arrow/compute/api_scalar.cc:864–870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

862SCALAR_EAGER_UNARY(IsValid, "is_valid")
863
864Result<Datum> CaseWhen(const Datum& cond, const std::vector<Datum>& cases,
865 ExecContext* ctx) {
866 std::vector<Datum> args = {cond};
867 args.reserve(cases.size() + 1);
868 args.insert(args.end(), cases.begin(), cases.end());
869 return CallFunction("case_when", args, ctx);
870}
871
872Result<Datum> IfElse(const Datum& cond, const Datum& if_true, const Datum& if_false,
873 ExecContext* ctx) {

Callers 3

CaseWhenBenchFunction · 0.85
CaseWhenBenchListFunction · 0.85
CaseWhenBenchContiguousFunction · 0.85

Calls 6

CallFunctionFunction · 0.85
reserveMethod · 0.45
sizeMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected