Skip to content

Account for table dependencies in lookup queries - #20373

Open
xiangfu0 wants to merge 2 commits into
apache:masterfrom
xiangfu0:xiangfu0/codex2/broker-query-dependencies
Open

xiangfu0 wants to merge 2 commits into
apache:masterfrom
xiangfu0:xiangfu0/codex2/broker-query-dependencies

Conversation

@xiangfu0

@xiangfu0 xiangfu0 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Share the built-in table dependency classification between the broker and DELETE.
  • Collect lookup dependencies from nested queries and broker-rewritten requests using the resolved dimension table identity.
  • Apply the dimension table's row-filter policy to multi-stage lookup joins. Reserve row-filter metadata for the broker and validate row-filter expressions.

How to reproduce

Run the focused broker tests for dependency collection, authorization after expression overrides, and lookup-join planning. These tests use synthetic request and plan trees.

Validation

  • Focused tests in pinot-broker, pinot-common, and pinot-core
  • Spotless, Checkstyle, and both license checks on the affected modules

Exercise broker dependency collection using a synthetic query tree in BaseSingleStageBrokerRequestHandlerTest.
@codecov-commenter

codecov-commenter commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 74.86631% with 47 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.44%. Comparing base (ed05b38) to head (3b37c09).
⚠️ Report is 8 commits behind head on master.

Files with missing lines Patch % Lines
...sthandler/BaseSingleStageBrokerRequestHandler.java 65.47% 16 Missing and 13 partials ⚠️
...requesthandler/MultiStageBrokerRequestHandler.java 75.75% 3 Missing and 5 partials ⚠️
...roker/requesthandler/BaseBrokerRequestHandler.java 40.00% 5 Missing and 1 partial ⚠️
...ava/org/apache/pinot/broker/api/AccessControl.java 66.66% 0 Missing and 2 partials ⚠️
...t/broker/broker/BasicAuthAccessControlFactory.java 94.73% 0 Missing and 1 partial ⚠️
...org/apache/pinot/core/auth/BasicAuthPrincipal.java 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #20373      +/-   ##
============================================
- Coverage     71.46%   71.44%   -0.02%     
  Complexity     1639     1639              
============================================
  Files          3609     3609              
  Lines        243749   243959     +210     
  Branches      39593    39657      +64     
============================================
+ Hits         174185   174294     +109     
- Misses        56477    56523      +46     
- Partials      13087    13142      +55     
Flag Coverage Δ
integration 100.00% <ø> (ø)
integration1 100.00% <ø> (ø)
integration2 0.00% <ø> (ø)
java-25 71.44% <74.86%> (-0.02%) ⬇️
lane-a 100.00% <ø> (ø)
lane-b 0.00% <ø> (ø)
temurin 71.44% <74.86%> (-0.02%) ⬇️
unittests 71.44% <74.86%> (-0.02%) ⬇️
unittests1 61.18% <68.57%> (-0.03%) ⬇️
unittests2 43.00% <72.72%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@xiangfu0 xiangfu0 changed the title Collect dimension dependencies from partitioned subqueries Account for table dependencies in lookup queries Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants