Skip to content

Register lookup transform for query planning#18627

Open
wolfkill wants to merge 1 commit into
apache:masterfrom
wolfkill:fix/lookup-function-planning
Open

Register lookup transform for query planning#18627
wolfkill wants to merge 1 commit into
apache:masterfrom
wolfkill:fix/lookup-function-planning

Conversation

@wolfkill
Copy link
Copy Markdown
Contributor

Summary

  • register the lookup transform with Calcite so multi-stage query planning can validate it
  • add a query-planner regression test for lookup using a qualified join column

Root cause

LOOKUP was listed as a transform function but had no return type inference, so it was skipped when building the Pinot operator table. Calcite then rejected queries with No match found for function signature lookup(...) before planning.

Tests

  • ./mvnw -pl pinot-query-planner -am -Dtest=QueryCompilationTest#testLookupFunctionSupportsQualifiedJoinColumn -Dsurefire.failIfNoSpecifiedTests=false test
  • ./mvnw -pl pinot-query-planner -am -Dtest=QueryCompilationTest -Dsurefire.failIfNoSpecifiedTests=false test
  • git diff --check

Addresses #12865.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.40%. Comparing base (a762254) to head (f477176).

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #18627      +/-   ##
============================================
- Coverage     64.40%   64.40%   -0.01%     
  Complexity     1137     1137              
============================================
  Files          3337     3337              
  Lines        206069   206069              
  Branches      32128    32128              
============================================
- Hits         132710   132709       -1     
  Misses        62726    62726              
- Partials      10633    10634       +1     
Flag Coverage Δ
custom-integration1 100.00% <ø> (ø)
integration 100.00% <ø> (ø)
integration1 100.00% <ø> (ø)
integration2 0.00% <ø> (ø)
java-21 64.40% <100.00%> (-0.01%) ⬇️
temurin 64.40% <100.00%> (-0.01%) ⬇️
unittests 64.39% <100.00%> (-0.01%) ⬇️
unittests1 56.82% <100.00%> (ø)
unittests2 36.92% <100.00%> (-0.01%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 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.

@wolfkill wolfkill marked this pull request as ready for review May 29, 2026 03:32
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.

2 participants