Add OpChain converter SPI and adopt it in runtime paths.#17974
Merged
gortiz merged 3 commits intoapache:masterfrom Mar 26, 2026
Merged
Add OpChain converter SPI and adopt it in runtime paths.#17974gortiz merged 3 commits intoapache:masterfrom
gortiz merged 3 commits intoapache:masterfrom
Conversation
Introduce ServiceLoader-based conversion dispatch and route existing runtime conversion call sites through the SPI extension point.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #17974 +/- ##
============================================
- Coverage 63.30% 63.26% -0.04%
- Complexity 1525 1541 +16
============================================
Files 3193 3198 +5
Lines 193330 193990 +660
Branches 29732 29863 +131
============================================
+ Hits 122381 122734 +353
- Misses 61356 61614 +258
- Partials 9593 9642 +49
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
yashmayya
approved these changes
Mar 26, 2026
xiangfu0
pushed a commit
to pinot-contrib/pinot-docs
that referenced
this pull request
Mar 26, 2026
Contributor
|
Documentation for this feature has been added in pinot-contrib/pinot-docs#581. The OpChainConverter SPI documentation includes:
|
xiangfu0
added a commit
to pinot-contrib/pinot-docs
that referenced
this pull request
Mar 27, 2026
…ity (apache/pinot#17974) (#581) Co-authored-by: Pinot Docs Bot <docs-bot@pinot.apache.org>
Contributor
Author
|
I don't think this feature needs to be documented, but it won't hurt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
Pinot previously used a single hardcoded converter (
PlanNodeToOpChain) in runtime execution paths. To enable extensibility (for example, alternative execution backends) without forking core runtime flow, we need a first-class conversion extension point and centralized dispatch. For example this can be a first step on the idea of fusing the timeseries engine with MSE.Changes Included (with effect)
pinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/plan/OpChainConverter.javaPlanNodetoOpChain.DefaultOpChainConverter) that delegates to existingPlanNodeToOpChain.@AutoService.pinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/plan/OpChainConverterDispatcher.javaServiceLoader.priority()wins by defaultsetActiveConverterIdOverride(...)pinot-query-runtime/src/test/java/org/apache/pinot/query/runtime/plan/OpChainConverterDispatcherTest.javapinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/QueryRunner.javaPlanNodeToOpChain.convert(...)call with dispatcher conversion.pinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/plan/pipeline/PipelineBreakerExecutor.javaPlanNodeToOpChain.convert(...)with dispatcher conversion.pinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/plan/server/ServerPlanRequestUtils.javaPlanNodeToOpChain.convert(...)with dispatcher conversion.pinot-query-runtime/src/main/java/org/apache/pinot/query/service/dispatch/QueryDispatcher.javaBehavior / Compatibility
PlanNodeToOpChain.ServiceLoader.Test Plan
./mvnw -pl pinot-query-runtime -Dtest=OpChainConverterDispatcherTest test./mvnw -pl pinot-query-runtime -am -DskipTests compile./mvnw -pl pinot-query-runtime -am test -Dtest=QueryRunnerTest