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

Function IntegersCanFitImpl

cpp/src/arrow/util/int_util.cc:896–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

894template <typename Type, typename CType = typename Type::c_type,
895 typename ScalarType = typename TypeTraits<Type>::ScalarType>
896Status IntegersCanFitImpl(const ArraySpan& values, const DataType& target_type) {
897 CType bound_min{}, bound_max{};
898 GetSafeMinMax<Type>(target_type.id(), &bound_min, &bound_max);
899 return CheckIntegersInRange(values, ScalarType(bound_min), ScalarType(bound_max));
900}
901
902} // namespace
903

Callers

nothing calls this directly

Calls 2

CheckIntegersInRangeFunction · 0.85
idMethod · 0.45

Tested by

no test coverage detected