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


Change subject: PROTOTYPE: Inline bloom filter probes and inserts in codegen'd 
code
......................................................................

PROTOTYPE: Inline bloom filter probes and inserts in codegen'd code

The codegen'd runtime filter evaluation calls
kudu::BlockBloomFilter::Find() for every row, which dispatches through
a member function pointer to BucketFindAVX2(). Neither call can be
inlined into the generated code. The codegen'd filter insert of join
builds makes the same calls into Kudu's Insert().

BloomFilter::IrFind() and IrInsert() now implement Kudu's probe and
insert in bloom-filter-ir.cc on the public state of the Kudu filter,
with the same hash, bucket index and bit layout. They use generic
256-bit vectors, which the AVX2 IR module lowers to the same
instructions as Kudu's AVX2 code. The codegen'd FilterContext::Eval()
calls the new RuntimeFilter::IrEval(), which probes with IrFind(). The
first insert into an empty filter still goes through Kudu, and
interpreted code still uses Kudu's Find()/Insert().

Testing:
- TPC-DS SF100, 5 executors, MT_DOP=0: total -0.5% (+0.4% without
  q72 and q78), i.e. no measurable end-to-end gain. Results matched
  master, except q56 and q65, whose LIMIT ties vary between runs. In
  a microbenchmark, a tight probe loop on a 1 MB filter took 1.8 ns
  instead of 2.2 ns per probe.
- Added BloomFilterTest.InlineProbeMatchesKudu, which checks that
  answers and filter bytes match Kudu's Find()/Insert().

Change-Id: Ie726368c0c7de915850b878e543ac5bcabf12228
Assisted-by: Claude Opus 5.5 (Claude Code)
---
M be/src/codegen/gen_ir_descriptions.py
M be/src/exec/filter-context.cc
M be/src/exec/filter-context.h
M be/src/runtime/runtime-filter-ir.cc
M be/src/runtime/runtime-filter.h
M be/src/util/bloom-filter-ir.cc
M be/src/util/bloom-filter-test.cc
M be/src/util/bloom-filter.h
8 files changed, 164 insertions(+), 6 deletions(-)



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

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

Reply via email to