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

Method CheckUnifyAsymmetric

cpp/src/arrow/type_test.cc:953–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

951 }
952
953 void CheckUnifyAsymmetric(
954 const std::shared_ptr<Field>& field1, const std::shared_ptr<Field>& field2,
955 const std::shared_ptr<Field>& expected,
956 const Field::MergeOptions& options = Field::MergeOptions::Defaults()) {
957 ARROW_SCOPED_TRACE("options: ", options);
958 ARROW_SCOPED_TRACE("field2: ", field2->ToString());
959 ARROW_SCOPED_TRACE("field1: ", field1->ToString());
960 ASSERT_OK_AND_ASSIGN(auto merged, field1->MergeWith(field2, options));
961 AssertFieldEqual(merged, expected);
962 }
963
964 void CheckPromoteTo(
965 const std::shared_ptr<Field>& field1, const std::shared_ptr<Field>& field2,

Callers

nothing calls this directly

Calls 4

AssertFieldEqualFunction · 0.85
DefaultsFunction · 0.70
fieldFunction · 0.70
ToStringMethod · 0.45

Tested by

no test coverage detected