deshmukhpurushothaman commented on issue #17398: URL: https://github.com/apache/pinot/issues/17398#issuecomment-7138525673
Thanks for assigning this. Here is what I found before changing code. **Method.** I built and loaded real segments for every combination of data type (INT, LONG, FLOAT, DOUBLE, BIG_DECIMAL, STRING, BOOLEAN, TIMESTAMP, JSON, BYTES) x single/multi-value x encoding (raw, dictionary, raw with an explicit dictionary) x sorted column or not x every set of up to three indexes (inverted, range, bloom, FST, IFST, text, JSON, H3, vector). That is 8,262 cases. For each one I checked that anything passing `TableConfigUtils.validate()` builds, loads and contains every requested index. **Results** - 7,300 cases are already rejected by `validate()`, and 847 build correctly. - No combination of indexes fails at runtime. Every pair and triple of indexes that work on their own also work together on the same column (for example inverted + range, bloom + range, text + dictionary), so there is no cross-index conflict that needs a new rule. - One real gap: a range index on a raw (no dictionary) `BIG_DECIMAL` column. `RangeIndexType.validate()` lets it through because `BIG_DECIMAL` is numeric, but `BitSlicedRangeIndexCreator` only supports INT/LONG/FLOAT/DOUBLE raw values, so the segment build throws `IllegalArgumentException: Unsupported data type: BIG_DECIMAL`. With a dictionary it works. - The `BYTES` failures in `TableIndexingTest.csv` are a test artifact (the generator passes `ByteBuffer`, which fails at ingestion before any index is built). With `byte[]` data, bloom/inverted/range on BYTES all build. - Two cases pass validation but do not throw, so I am leaving them out: a text index on a column of data type `JSON` is silently not built (already recorded in the csv as `expected [1] but found [0]`), and an inverted index on a sorted column is accepted but not built separately, because the sorted forward index already serves it. **Plan.** Following the "only block what actually fails" direction from #18751, I will add one check in `RangeIndexType.validate()` for the `BIG_DECIMAL` case with a specific message, plus tests. I will not add pair-blocking rules. I can also write up the verified type/encoding/index compatibility matrix for the docs as a follow-up. A PR will follow shortly. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
