westonpace commented on issue #35166: URL: https://github.com/apache/arrow/issues/35166#issuecomment-1514990894
Yikes. That's definitely a bug. I think the return type of sum should probably maximize the `P` parameter. E.g. `SUM(Decimal128<X,Y>) -> Decimal<38,Y>` and `SUM(Decimal256<X,Y>) -> Decimal<76,Y>`. This matches the rules for Substrait as well as matches what SQL server does. -- 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]
