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)` will turn into a `InPredicate` which `selectivity` = 0.1. So in their father node `CompoundPredicate`, `selectivity` will be set to -1. https://github.com/apache/incubator-doris/blob/81aa1c599def3c3f0d9cd80469fd06393ea764e7/fe/src/main/java/org/apache/doris/analysis/CompoundPredicate.java#L106-L115 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]
