You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "westonpace (via GitHub)" <gi...@apache.org> on 2023/04/19 16:03:59 UTC

[GitHub] [arrow] westonpace commented on issue #35166: pa.compute.sum result for decimal128 doesn't fit into precision/scale

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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org