raghavyadav01 opened a new pull request, #20397:
URL: https://github.com/apache/pinot/pull/20397

   Fixes #19145.
   
   `AggregationPlanNode#isFitForNonScanBasedPlan` treated any 
dictionary-encoded column as resolvable for these functions, but the resolvers 
have stricter type requirements:
   
   - `MINLONG` / `MAXLONG` over a FLOAT/DOUBLE/BIG_DECIMAL column threw 
`IllegalArgumentException` from the resolver, even though the scan path handles 
it.
   - `MINSTRING` / `MAXSTRING` over a numeric column silently returned the raw 
dictionary min/max (a boxed number) instead of failing validation.
   
   The eligibility check now requires an INT or LONG column for 
`MINLONG`/`MAXLONG` and a STRING column for `MINSTRING`/`MAXSTRING`. Any other 
type falls back to the scan.
   
   Tests (in `MetadataAndDictionaryAggregationPlanMakerTest`, with a new DOUBLE 
column in the predictable segment):
   - wrong-type queries are planned as a scan, including the mixed case with 
another aggregation that used to throw
   - `MINLONG`/`MAXLONG` on an INT column are still resolved from the dictionary
   
   Without the change, 5 of the 32 tests in the class fail; with it, all pass.


-- 
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]

  • [PR] Do not resolve MINLONG/MAX... raghavyadav01 (via GitHub) via commits

Reply via email to