File tree Expand file tree Collapse file tree
datafusion/functions-aggregate-common/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,7 +141,9 @@ macro_rules! min_max_generic {
141141 } } ;
142142}
143143
144- // min/max of two scalar values of the same type
144+ // min/max of two logically compatible scalar values.
145+ // Dictionary scalars are unwrapped to their inner values for comparison,
146+ // then rewrapped with the dictionary key type when both inputs are dictionaries.
145147macro_rules! min_max {
146148 ( $VALUE: expr, $DELTA: expr, $OP: ident) => { {
147149 Ok ( match ( $VALUE, $DELTA) {
@@ -431,7 +433,7 @@ macro_rules! min_max {
431433
432434 e => {
433435 return internal_err!(
434- "MIN/MAX is not expected to receive scalars of incompatible types {:?}" ,
436+ "MIN/MAX is not expected to receive logically incompatible scalar values {:?}" ,
435437 e
436438 )
437439 }
You can’t perform that action at this time.
0 commit comments