hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chaoyu Tang" <>
Subject Re: Review Request 32908: HIVE-10231: Compute partition column stats fails if partition col type is date
Date Tue, 07 Apr 2015 04:11:13 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated April 7, 2015, 4:11 a.m.)

Review request for hive, Ashutosh Chauhan, Gopal V, Jimmy Xiang, Sergio Pena, and Szehon Ho.


Made changes based on Ashutosh's suggestion and added more test cases for other data types.

Repository: hive-git


Computing column stats for a partition fails if the partition column is type of date. It is
caused by a bug in rewriting the analyze query in ColumnStatsSemanticAnalyzer. The date value
should be quoted in the rewritten query, but was not. In this patch, for the simplicity I
quote the partition value in the rewritten query regardless of its data type.

Diffs (updated)

  ql/src/java/org/apache/hadoop/hive/ql/parse/ b84ea46 
  ql/src/test/queries/clientpositive/columnstats_part_coltype.q PRE-CREATION 
  ql/src/test/results/clientpositive/columnstats_part_coltype.q.out PRE-CREATION 



Local manually tests passed
A new qfile test columnstats_part_coltype.q passed
submitted to prebuild testing.


Chaoyu Tang

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message