kokila-19 commented on code in PR #6358:
URL: https://github.com/apache/hive/pull/6358#discussion_r3160190840
##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/info/desc/formatter/TextDescTableFormatter.java:
##########
@@ -311,9 +311,11 @@ private void getStorageDescriptorInfo(StringBuilder
tableInfo, Table table, Stor
formatOutput("InputFormat:", storageDesc.getInputFormat(), tableInfo);
formatOutput("OutputFormat:", storageDesc.getOutputFormat(), tableInfo);
formatOutput("Compressed:", storageDesc.isCompressed() ? "Yes" : "No",
tableInfo);
+ // Show bucket columns for Native table or Iceberg table with CLUSTERED BY
(Hive-style bucketing)
+ boolean hasClusteredBy = storageDesc.getNumBuckets() > 0
Review Comment:
This is to check if the tables has bucketing info (which is in storage
descriptor) and show the hive bucketing information in output of DESCRIBE
FORMATTED query. Those are not shown for non native tables.
Iceberg tables without CLUSTERED BY won’t show Hive bucketing fields, but
Iceberg tables with CLUSTERED BY will.
--
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]