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

Function HasDecimal

cpp/src/arrow/compute/kernels/codegen_internal.cc:569–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567}
568
569bool HasDecimal(const std::vector<TypeHolder>& types) {
570 for (const auto& th : types) {
571 if (is_decimal(th.id())) {
572 return true;
573 }
574 }
575 return false;
576}
577
578void PromoteIntegerForDurationArithmetic(std::vector<TypeHolder>* types) {
579 bool has_duration = std::any_of(types->begin(), types->end(), [](const TypeHolder& t) {

Callers 6

DispatchBestMethod · 0.85
DispatchBestMethod · 0.85
DispatchBestMethod · 0.85
DispatchBestMethod · 0.85
DispatchExactMethod · 0.85
CheckDecimalsMethod · 0.85

Calls 2

is_decimalFunction · 0.50
idMethod · 0.45

Tested by

no test coverage detected