Review Board 1.7.22


HIVE-5899 NPE during explain extended with char/varchar columns

Review Request #15896 - Created Nov. 28, 2013 and updated

Jason Dere
HIVE-5899
Reviewers
hive
Prasanth_J, rhbutani
hive-git
Couple areas in the stats logic where it fetches the correct stats type based on the type string, which needed to be updated for char/varchar.

 
data/files/alltypes.txt
Revision d86a7bc New Change
1
true|10|100|1000|10000|4.0|20.0|2.2222|1969-12-31 15:59:58.174|1970-01-01 00:00:00|hello|k1:v1,k2:v2|100,200|{10, "foo"}
1
true|10|100|1000|10000|4.0|20.0|2.2222|1969-12-31 15:59:58.174|1970-01-01 00:00:00|hello|hello|k1:v1,k2:v2|100,200|{10, "foo"}
2
true|20|200|2000|20000|8.0|40.0|4.2222|1970-12-31 15:59:58.174|1971-01-01 00:00:00||k3:v3,k4:v4|200,300|{20, "bar"}
2
true|20|200|2000|20000|8.0|40.0|4.2222|1970-12-31 15:59:58.174|1971-01-01 00:00:00|||k3:v3,k4:v4|200,300|{20, "bar"}
metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
Revision 4f158bc New Change
 
ql/src/java/org/apache/hadoop/hive/ql/io/orc/WriterImpl.java
Revision 4658049 New Change
 
ql/src/test/queries/clientpositive/annotate_stats_select.q
Revision 93492f5 New Change
 
ql/src/test/results/clientpositive/annotate_stats_select.q.out
Revision 9cdfa74 New Change
 
  1. data/files/alltypes.txt: Loading...
  2. metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java: Loading...
  3. ql/src/java/org/apache/hadoop/hive/ql/io/orc/WriterImpl.java: Loading...
  4. ql/src/test/queries/clientpositive/annotate_stats_select.q: Loading...
  5. ql/src/test/results/clientpositive/annotate_stats_select.q.out: Loading...