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

Function IdentityImpliesEqualityNansNotEqual

cpp/src/arrow/compare.cc:171–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171inline bool IdentityImpliesEqualityNansNotEqual(const DataType& type) {
172 if (type.id() == Type::FLOAT || type.id() == Type::DOUBLE ||
173 type.id() == Type::HALF_FLOAT) {
174 return false;
175 }
176 for (const auto& child : type.fields()) {
177 if (!IdentityImpliesEqualityNansNotEqual(*child->type())) {
178 return false;
179 }
180 }
181 return true;
182}
183
184inline bool IdentityImpliesEquality(const DataType& type, const EqualOptions& options) {
185 if (options.nans_equal()) {

Callers 1

IdentityImpliesEqualityFunction · 0.85

Calls 3

idMethod · 0.45
fieldsMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected