🌐 AI搜索 & 代理 主页
Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unnecessary 'ANY' logic from OrSimplifier
  • Loading branch information
knakatasf committed Dec 11, 2025
commit 372d86dcd5133f199bc1ee2c71a4fa6ccc823b01
16 changes: 0 additions & 16 deletions arangod/Aql/OptimizerRules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5897,22 +5897,6 @@ struct OrSimplifier {
}
}
// intentionally falls through
} else if (node->type == NODE_TYPE_OPERATOR_BINARY_ARRAY_EQ) {
TRI_ASSERT(node->numMembers() == 3);
auto arrayNode = node->getMember(0);
auto attrNode = node->getMember(1);
auto quantifier = node->getMember(2);

// Check if quantifier is ANY
if (Quantifier::isAny(quantifier)) {
if (arrayNode->isArray() && qualifies(attrNode, attributeName)) {
if (arrayNode->isDeterministic()) {
attr = attrNode;
value = arrayNode;
return true;
}
}
}
}

return false;
Expand Down