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

   ## Description
   
   `BOOLAND` / `BOOLOR` declare a `BOOLEAN` return type but override their
   intermediate result type to `INTEGER`. This change aligns the intermediate 
result
   type with the function's `BOOLEAN` type for consistency.
   
   ## Why it is non-breaking
   
   - `ColumnDataType.BOOLEAN` is stored and serialized as `INT`, so the 
multi-stage
     intermediate exchange is byte-identical to `INTEGER`.
   - The merge stage builds the aggregate call with an `ANY` operand type 
checker
     (`PinotAggregateExchangeNodeInsertRule`), so Calcite operand validation is
     unaffected.
   - The single-stage (v1) engine derives the intermediate type from
     `AggregationFunction.getIntermediateResultColumnType()` (still `INT`) and 
is
     unaffected.
   
   Verified against the multi-stage resource query tests 
(`ResourceBasedQueriesTest`):
   identical results before and after (no behavior change).
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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

Reply via email to