Zoltan Borok-Nagy has uploaded this change for review. ( http://gerrit.cloudera.org:8080/25088
Change subject: PROTOTYPE: Estimate IS NOT NULL on CTE and inline view slots ...................................................................... PROTOTYPE: Estimate IS NOT NULL on CTE and inline view slots IS [NOT] NULL on a slot without a table, such as a slot of a CTE consumer or an inline view, got the default selectivity 0.1. With CTE suggestions in the Calcite planner, d_date_sk IS NOT NULL on a date_dim CTE consumer cut its estimate from 274 to 27 rows, and the joins above it broadcast 40M- and 149M-row builds in TPC-DS q17 and q25. The predicate now follows single-SlotRef source exprs down to a table slot and uses its null count. A slot whose stats show no NULLs gets selectivity 1.0 for IS NOT NULL. NULLs added by outer joins inside the view are ignored. Testing: - TPC-DS SF1000, 8 executors, MT_DOP=8, PLANNER=CALCITE, CTE_THRESHOLD=1, on top of earlier prototypes: total 345.9 s -> 336.0 s; q17 and q25 no longer broadcast. No new tests. Change-Id: I5159aa5bc69bd1ebc48939b9f65d1ff6d294d769 Assisted-by: Claude Opus 5.5 (Claude Code) --- M fe/src/main/java/org/apache/impala/analysis/IsNullPredicate.java 1 file changed, 26 insertions(+), 0 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/88/25088/1 -- To view, visit http://gerrit.cloudera.org:8080/25088 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I5159aa5bc69bd1ebc48939b9f65d1ff6d294d769 Gerrit-Change-Number: 25088 Gerrit-PatchSet: 1 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
