GitHub user egraldlo opened a pull request:
https://github.com/apache/spark/pull/977
do best to avoid overflow in avg function
since we define the return data type of avg() to DoubleType, I think we can
do our best to extend the scope to avoid the overflowing, so I think we can
transform the datatype to DoubleType before sum.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/egraldlo/spark stringoperator
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/977.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #977
----
commit 13d3267c1c542ddd577fce2e8552b75a92b76f38
Author: egraldlo <[email protected]>
Date: 2014-06-01T14:50:58Z
system function upper and lower supported
commit 1f0bbb5d672856764901cc9676ea7795d08e4ddb
Author: egraldlo <[email protected]>
Date: 2014-06-01T15:02:31Z
system function upper and lower supported
commit b49f25e6f2d976ae441aa6e27986ea59663f5080
Author: egraldlo <[email protected]>
Date: 2014-06-02T05:04:42Z
modify the formatting issues
commit ea76d0a44e91488161eebd8ab28046960773b4e9
Author: egraldlo <[email protected]>
Date: 2014-06-02T05:19:05Z
modify the formatting issues
commit 3c6c60a9d6d363ad2cf1f8d0482662d575ab3e18
Author: egraldlo <[email protected]>
Date: 2014-06-02T08:53:01Z
Add UPPER, LOWER, MAX and MIN into hive parser
commit 8775c68465045b8a6d0426262c67c6a9c6938155
Author: egraldlo <[email protected]>
Date: 2014-06-05T07:01:16Z
avoid overflowing in function avg
commit 1793a42fe2d2946f1633f2f20cca5ebb84e2c238
Author: egraldlo <[email protected]>
Date: 2014-06-05T07:10:40Z
Merge remote-tracking branch '0605/master' into stringoperator
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---