zhangbutao commented on code in PR #4744: URL: https://github.com/apache/hive/pull/4744#discussion_r1421709435
########## ql/src/java/org/apache/hadoop/hive/ql/ddl/table/info/desc/DescTableOperation.java: ########## @@ -217,9 +216,7 @@ private void getColumnDataColPathSpecified(Table table, Partition part, List<Fie } } else { List<String> partitions = new ArrayList<String>(); - // The partition name is converted to lowercase before generating the stats. So we should use the same - // lower case name to get the stats. - String partName = HMSHandler.lowerCaseConvertPartName(part.getName()); + String partName = part.getName(); Review Comment: I'm not sure I understand the change here. But Hive supports the case sensitive on partition names. create table testpartbl(id int) partitioned by(dt string); ``` alter table testpartbl add partition(dt='AA'); alter table testpartbl add partition(dt='aa'); alter table testpartbl add partition(dt='Aa'); ``` `show partitions testpartbl;` ``` +------------+ | partition | +------------+ | dt=AA | | dt=Aa | | dt=aa | +------------+ ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org