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

Method Call

cpp/src/arrow/compute/kernels/scalar_cast_boolean.cc:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40struct ParseBooleanString {
41 template <typename OutValue, typename Arg0Value>
42 static OutValue Call(KernelContext*, Arg0Value val, Status* st) {
43 bool result = false;
44 if (ARROW_PREDICT_FALSE(!ParseValue<BooleanType>(val.data(), val.size(), &result))) {
45 *st = Status::Invalid("Failed to parse value: ", val);
46 }
47 return result;
48 }
49};
50
51std::vector<std::shared_ptr<CastFunction>> GetBooleanCasts() {

Callers

nothing calls this directly

Calls 3

InvalidFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected