You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Chaoyu Tang <ct...@gmail.com> on 2015/09/23 06:04:59 UTC

Review Request 38659: HIVE-11926: Stats annotation might not extract stats for varchar/decimal columns

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/38659/
-----------------------------------------------------------

Review request for hive, Ashutosh Chauhan, Szehon Ho, and Xuefu Zhang.


Bugs: HIVE-11926
    https://issues.apache.org/jira/browse/HIVE-11926


Repository: hive-git


Description
-------

As Hive-11926 describes, Stats annotation might not be able to extract stats from columns with uppercase type names (VARCHAR/DECIMAL) since StatsUtils uses startWith to compare them with lowercase SerdeConstants type name.
This patch converts the type names to lowercase before they are compared with SerdeConstants.


Diffs
-----

  ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java 2c970bd 

Diff: https://reviews.apache.org/r/38659/diff/


Testing
-------

Pre-commit build and manual tests.


Thanks,

Chaoyu Tang


Re: Review Request 38659: HIVE-11926: Stats annotation might not extract stats for varchar/decimal columns

Posted by Xuefu Zhang <xz...@cloudera.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/38659/#review100247
-----------------------------------------------------------

Ship it!


Ship It!

- Xuefu Zhang


On Sept. 23, 2015, 4:04 a.m., Chaoyu Tang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38659/
> -----------------------------------------------------------
> 
> (Updated Sept. 23, 2015, 4:04 a.m.)
> 
> 
> Review request for hive, Ashutosh Chauhan, Szehon Ho, and Xuefu Zhang.
> 
> 
> Bugs: HIVE-11926
>     https://issues.apache.org/jira/browse/HIVE-11926
> 
> 
> Repository: hive-git
> 
> 
> Description
> -------
> 
> As Hive-11926 describes, Stats annotation might not be able to extract stats from columns with uppercase type names (VARCHAR/DECIMAL) since StatsUtils uses startWith to compare them with lowercase SerdeConstants type name.
> This patch converts the type names to lowercase before they are compared with SerdeConstants.
> 
> 
> Diffs
> -----
> 
>   ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java 2c970bd 
> 
> Diff: https://reviews.apache.org/r/38659/diff/
> 
> 
> Testing
> -------
> 
> Pre-commit build and manual tests.
> 
> 
> Thanks,
> 
> Chaoyu Tang
> 
>