deniskuzZ commented on code in PR #4431:
URL: https://github.com/apache/hive/pull/4431#discussion_r1238452687
##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/info/desc/DescTableOperation.java:
##########
@@ -208,9 +208,17 @@ private void getColumnDataColPathSpecified(Table table,
Partition part, List<Fie
table.setParameters(tableProps);
} else {
cols.addAll(Hive.getFieldsFromDeserializer(desc.getColumnPath(),
deserializer, context.getConf()));
- colStats.addAll(
-
context.getDb().getTableColumnStatistics(tableName.getDb().toLowerCase(),
- tableName.getTable().toLowerCase(), colNames, false));
+ if (table.isNonNative() &&
table.getStorageHandler().canProvideColStatistics(table)) {
+ List<ColumnStatisticsObj> colStatistics =
table.getStorageHandler().getColStatistics(table);
+ if (colStatistics != null) {
+ colStats.addAll(colStatistics);
+ }
+
+ } else {
+ colStats.addAll(context.getDb()
Review Comment:
fix the formatting
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]