Fix more decimal overflow issues.

Change-Id: Ie88a6dc1a584ce795831b3880abb63c967b8c471
Reviewed-on: http://gerrit.ent.cloudera.com:8080/2835
Reviewed-by: Nong Li <nong@cloudera.com>
Tested-by: jenkins