ccoffline edited a comment on issue #4581:
URL:
https://github.com/apache/incubator-doris/issues/4581#issuecomment-690133817
`-1=-1` or other True expr will turn into a `BoolLiteral` which
`selectivity` = -1.
`tag_id in (-1)` `selectivity` = 0.1.
So in the or `CompoundPredicate`, `selectivity` will be set to -1.
> if (getChild(0).selectivity == -1 || children.size() == 2 &&
getChild(1).selectivity == -1) {
// give up if we're missing an input
selectivity = -1;
return;
}
If remove any of these expresstions, `SelectNode.computeStats` will not be
executed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]