Zoltan Borok-Nagy has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/25100


Change subject: PROTOTYPE: Drop bloom filters of FK joins to unfiltered PK scans
......................................................................

PROTOTYPE: Drop bloom filters of FK joins to unfiltered PK scans

A runtime filter built from a full scan of a table's primary key can
only reject fact rows whose foreign key is NULL or violates the FK
constraint, yet fact scans wait for it and probe it for every row. In
short TPC-DS queries the scans wait 0.3-0.7 s for 16 MB bloom filters
that remove 1-5% of the rows.

reduceFilters() now drops such bloom filters when the build side is a
full scan of an unpartitioned HDFS table, the source is its
single-column primary key, and every target has a RELY foreign key to
it. '<fk> IS NOT NULL' is added to the target scans to keep the NULL
elimination. 'IS NOT NULL' conjuncts on columns with under 10% NULLs,
which the Calcite planner adds to dimension scans, do not count as
filtering the build scan.

Testing:
- TPC-DS SF100, 5 executors, without the IS NOT NULL handling: 104
  queries 4.7% faster (geomean 0.95).
- TPC-DS SF3000, 8 executors, MT_DOP=8, PLANNER=CALCITE: the IS NOT
  NULL handling changes 38 plans; short queries -1.7 s, longer ones
  +3.2 s, results matched. Needs a stricter rule. No new tests.

Change-Id: I87b67858281389ce1b7ed8940f60485d78e89950
Assisted-by: Claude Opus 5.5 (Claude Code)
---
M fe/src/main/java/org/apache/impala/planner/RuntimeFilterGenerator.java
1 file changed, 171 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/00/25100/1
--
To view, visit http://gerrit.cloudera.org:8080/25100
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I87b67858281389ce1b7ed8940f60485d78e89950
Gerrit-Change-Number: 25100
Gerrit-PatchSet: 1
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>

Reply via email to