aboutsummaryrefslogtreecommitdiff
path: root/yarn/pom.xml
diff options
context:
space:
mode:
authorDavies Liu <davies@databricks.com>2015-08-25 14:55:34 -0700
committerYin Huai <yhuai@databricks.com>2015-08-25 14:55:45 -0700
commit8925896b1eb0a13d723d38fb263d3bec0a01ec10 (patch)
tree035d0519c19c4d36aa9d4a37cf48f4c5b2236bfc /yarn/pom.xml
parent6f05b7aebd66a00e2556a29b35084e81ac526406 (diff)
downloadspark-8925896b1eb0a13d723d38fb263d3bec0a01ec10.tar.gz
spark-8925896b1eb0a13d723d38fb263d3bec0a01ec10.tar.bz2
spark-8925896b1eb0a13d723d38fb263d3bec0a01ec10.zip
[SPARK-10245] [SQL] Fix decimal literals with precision < scale
In BigDecimal or java.math.BigDecimal, the precision could be smaller than scale, for example, BigDecimal("0.001") has precision = 1 and scale = 3. But DecimalType require that the precision should be larger than scale, so we should use the maximum of precision and scale when inferring the schema from decimal literal. Author: Davies Liu <davies@databricks.com> Closes #8428 from davies/smaller_decimal. (cherry picked from commit ec89bd840a6862751999d612f586a962cae63f6d) Signed-off-by: Yin Huai <yhuai@databricks.com>
Diffstat (limited to 'yarn/pom.xml')
0 files changed, 0 insertions, 0 deletions