Fix overflow in decimal divide. Added warning if overflow happened.

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