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

Function ExtractKnownFieldValues

cpp/src/arrow/compute/expression.cc:954–968  ·  view source on GitHub ↗

Conjunction members which are represented in known_values are erased from conjunction_members

Source from the content-addressed store, hash-verified

952// Conjunction members which are represented in known_values are erased from
953// conjunction_members
954Status ExtractKnownFieldValues(std::vector<Expression>* conjunction_members,
955 KnownFieldValues* known_values) {
956 // filter out consumed conjunction members, leaving only unconsumed
957 *conjunction_members = arrow::internal::FilterVector(
958 std::move(*conjunction_members),
959 [known_values](const Expression& guarantee) -> bool {
960 if (auto known_value = ExtractOneFieldValue(guarantee)) {
961 known_values->map.insert(std::move(*known_value));
962 return false;
963 }
964 return true;
965 });
966
967 return Status::OK();
968}
969
970} // namespace
971

Callers 1

SimplifyWithGuaranteeFunction · 0.85

Calls 5

FilterVectorFunction · 0.85
ExtractOneFieldValueFunction · 0.85
OKFunction · 0.50
insertMethod · 0.45

Tested by

no test coverage detected