The totalrowcount already factored in the scanspec condition - please see the metatable call above. This was a bug in changes made for DRILL-5429. I missed it while reviewing the PR. The original rowcount did not factor the condition earlier hence it was estimating it here based on whether the filter is present or not.
[ Full content available at: https://github.com/apache/drill/pull/1489 ] This message was relayed via gitbox.apache.org for devnull@infra.apache.org