More decimal overflow fixes.

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