diff options
author | Cheng Lian <lian@databricks.com> | 2014-11-02 15:14:44 -0800 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-11-02 15:14:44 -0800 |
commit | e4b80894bdb72c0acf8832fd48421c546fbc37e6 (patch) | |
tree | 0b61776c1eac4271a7aa3662d3e8bde6402ce3fe /sql/hive-thriftserver | |
parent | 9c0eb57c737dd7d97d2cbd4516ddd2cf5d06e4b2 (diff) | |
download | spark-e4b80894bdb72c0acf8832fd48421c546fbc37e6.tar.gz spark-e4b80894bdb72c0acf8832fd48421c546fbc37e6.tar.bz2 spark-e4b80894bdb72c0acf8832fd48421c546fbc37e6.zip |
[SPARK-4182][SQL] Fixes ColumnStats classes for boolean, binary and complex data types
`NoopColumnStats` was once used for binary, boolean and complex data types. This `ColumnStats` doesn't return properly shaped column statistics and causes caching failure if a table contains columns of the aforementioned types.
This PR adds `BooleanColumnStats`, `BinaryColumnStats` and `GenericColumnStats`, used for boolean, binary and all complex data types respectively. In addition, `NoopColumnStats` returns properly shaped column statistics containing null count and row count, but this class is now used for testing purpose only.
Author: Cheng Lian <lian@databricks.com>
Closes #3059 from liancheng/spark-4182 and squashes the following commits:
b398cfd [Cheng Lian] Fixes failed test case
fb3ee85 [Cheng Lian] Fixes SPARK-4182
Diffstat (limited to 'sql/hive-thriftserver')
0 files changed, 0 insertions, 0 deletions