Github user zellerh commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/255#discussion_r49512451
--- 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 --
My bad, I provided that fix. What about the following, above line 3170: The
replacement of a RangeSpec could be an AND, convert ANDed predicates into
additional values in newExpr.
---
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.
---