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

Function GetCastFunction

cpp/src/arrow/compute/cast.cc:207–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207Result<std::shared_ptr<CastFunction>> GetCastFunction(const DataType& to_type) {
208 internal::EnsureInitCastTable();
209 auto it = internal::g_cast_table.find(static_cast<int>(to_type.id()));
210 if (it == internal::g_cast_table.end()) {
211 return Status::NotImplemented("Unsupported cast to ", to_type);
212 }
213 return it->second;
214}
215
216} // namespace internal
217

Callers 1

ExecuteImplMethod · 0.85

Calls 5

EnsureInitCastTableFunction · 0.85
NotImplementedFunction · 0.50
findMethod · 0.45
idMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected