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

Function IdentityImpliesEqualityNansNotEqual

cpp/src/arrow/compare.cc:203–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203inline bool IdentityImpliesEqualityNansNotEqual(const DataType& type) {
204 if (type.id() == Type::FLOAT || type.id() == Type::DOUBLE ||
205 type.id() == Type::HALF_FLOAT) {
206 return false;
207 }
208 for (const auto& child : type.fields()) {
209 if (!IdentityImpliesEqualityNansNotEqual(*child->type())) {
210 return false;
211 }
212 }
213 return true;
214}
215
216inline bool IdentityImpliesEquality(const DataType& type, const EqualOptions& options) {
217 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