Decimal analysis changes.

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