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

Function ContainFloat

cpp/src/arrow/table.cc:549–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547namespace {
548
549bool ContainFloat(const std::shared_ptr<DataType>& type) {
550 if (is_floating(type->id())) {
551 return true;
552 }
553
554 for (const auto& field : type->fields()) {
555 if (ContainFloat(field->type())) {
556 return true;
557 }
558 }
559 return false;
560}
561
562bool CanIgnoreNan(const Schema& schema, const EqualOptions& opts) {
563 if (opts.nans_equal()) {

Callers 1

CanIgnoreNanFunction · 0.85

Calls 4

is_floatingFunction · 0.70
idMethod · 0.45
fieldsMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected