Author: Thomas Tauber-Marshall <firstname.lastname@example.org>
Date: Mon Oct 24 15:37:22 2016 -0700
IMPALA-4260: Alter table add column drops all the column stats
Hive expects types for column stats to be specified as all lower
case. For some reason, it doesn't check this when the stats are
first written, but it does check when performing an 'alter table'.
This causes it to drop stats that Impala wrote because we specify
type names in upper case.
This patch converts the types that Impala sends to Hive for the
column stats to all lower case and adds a regression test.
I also filed
HIVE-15061 to track the issue from the Hive end.
Reviewed-by: Matthew Jacobs <email@example.com>
Tested-by: Internal Jenkins
The corresponding fix on the Hive side: https://issues.apache.org/jira/browse/HIVE-15061
(only one of these two patches is required to fix the problem)