Enable Json Index for MAP data type#16808
Merged
xiangfu0 merged 3 commits intoapache:masterfrom Sep 13, 2025
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #16808 +/- ##
============================================
- Coverage 63.36% 63.36% -0.01%
Complexity 1399 1399
============================================
Files 3055 3055
Lines 178916 178920 +4
Branches 27419 27421 +2
============================================
+ Hits 113377 113378 +1
- Misses 56789 56796 +7
+ Partials 8750 8746 -4
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:
|
xiangfu0
approved these changes
Sep 13, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR enables JSON index support for MAP data type columns in Apache Pinot. Previously, JSON indexes were only supported for STRING and JSON data types.
- Modified JSON index validation to accept MAP data type columns
- Added fallback logic to use composite JSON index when standard JSON index is unavailable
- Extended MAP filter operator to leverage JSON indexing capabilities for improved query performance
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| JsonIndexHandler.java | Updated validation logic to allow JSON index creation for MAP data type columns |
| MapFilterOperator.java | Added fallback mechanism to use composite JSON index and imported required dependencies |
...java/org/apache/pinot/segment/local/segment/index/loader/invertedindex/JsonIndexHandler.java
Outdated
Show resolved
Hide resolved
pinot-core/src/main/java/org/apache/pinot/core/operator/filter/MapFilterOperator.java
Show resolved
Hide resolved
…al/segment/index/loader/invertedindex/JsonIndexHandler.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
xiangfu0
pushed a commit
to xiangfu0/pinot
that referenced
this pull request
Nov 13, 2025
* Fix an issue in update indices for Composite Json Index for MAP column. * Fix an issue in update indices for Json Index for MAP column. * Update pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/index/loader/invertedindex/JsonIndexHandler.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Enable Json Index for MAP data type columns.