-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add dictionary-dependent index validation for table configs #17524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add dictionary-dependent index validation for table configs #17524
Conversation
❌ 36 Tests Failed:
View the top 3 failed test(s) by shortest run time
View the full list of 31 ❄️ flaky test(s)
To view more test analytics, go to the Test Analytics Dashboard |
Partially Fixes #17398
Problem
Currently, Pinot allows invalid table configurations where indexes that require dictionary encoding (inverted index, range index, FST index, inverted FST index) are enabled on columns with noDictionaryColumns set. This leads to segment creation failures at runtime rather than failing fast at table config validation time.
Solution
In this PR, I have added validation logic in
TableConfigUtils.validateIndexTypeCompatibility()to detect and reject incompatible index configurations during table creation/update, providing clear, actionable error messages to users.Testing
Added unit tests
enhancementuser-experience