diff options
author | Liang-Chi Hsieh <simonh@tw.ibm.com> | 2016-03-25 12:07:56 -0700 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2016-03-25 12:07:56 -0700 |
commit | ca003354da5e738e97418efc5af07be071c16d8f (patch) | |
tree | 5bd16686e3681437fffd7a2067f9299567447621 /sql/hive/compatibility/src/test | |
parent | 11fa8741ca5b550e4f373c5d6e520c64f5118d0c (diff) | |
download | spark-ca003354da5e738e97418efc5af07be071c16d8f.tar.gz spark-ca003354da5e738e97418efc5af07be071c16d8f.tar.bz2 spark-ca003354da5e738e97418efc5af07be071c16d8f.zip |
[SPARK-12443][SQL] encoderFor should support Decimal
## What changes were proposed in this pull request?
JIRA: https://issues.apache.org/jira/browse/SPARK-12443
`constructorFor` will call `dataTypeFor` to determine if a type is `ObjectType` or not. If there is not case for `Decimal`, it will be recognized as `ObjectType` and causes the bug.
## How was this patch tested?
Test is added into `ExpressionEncoderSuite`.
Author: Liang-Chi Hsieh <simonh@tw.ibm.com>
Author: Liang-Chi Hsieh <viirya@gmail.com>
Closes #10399 from viirya/fix-encoder-decimal.
Diffstat (limited to 'sql/hive/compatibility/src/test')
0 files changed, 0 insertions, 0 deletions