Github user nonstop-qfchen commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/255#discussion_r49478179
--- Diff: core/sql/optimizer/ValueDesc.cpp ---
@@ -3165,7 +3165,11 @@ void ValueIdSet::replaceVEGExpressions
if (iePtr != exprId.getItemExpr()) // a replacement was done
{
subtractElement(exprId); // remove existing ValueId
- newExpr += iePtr->getValueId(); // replace with a new one
+ //insert new expression(s)
+ if (iePtr->getOperatorType() == ITM_AND)
+ iePtr->convertToValueIdSet(newExpr, NULL, ITM_AND, FALSE,
FALSE);
--- End diff --
Should add a comment to ValueIdSet::replaceVEGExpressions() on converting
the AND backbone into a valueId set.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---