[ 
https://issues.apache.org/jira/browse/HIVE-25314?focusedWorklogId=620514&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-620514
 ]

ASF GitHub Bot logged work on HIVE-25314:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 08/Jul/21 14:14
            Start Date: 08/Jul/21 14:14
    Worklog Time Spent: 10m 
      Work Description: marton-bod commented on a change in pull request #2458:
URL: https://github.com/apache/hive/pull/2458#discussion_r666234150



##########
File path: 
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergStorageHandler.java
##########
@@ -270,6 +270,15 @@ public boolean supportsPartitionTransform() {
     return true;
   }
 
+  @Override
+  public Map<String, String> 
getPartitionTransformSpecProperty(org.apache.hadoop.hive.ql.metadata.Table 
hmsTable) {
+    Map<String, String> property = new HashMap<>();
+    TableDesc tableDesc = Utilities.getTableDesc(hmsTable);
+    Table table = Catalogs.loadTable(conf, tableDesc.getProperties());

Review comment:
       Would it make sense to use the `IcebergTableUtil` to load the table 
here? Not sure if there are other places too during `show create table` where 
we load the table, maybe there's some serde initialization at some point?




-- 
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 620514)
    Time Spent: 40m  (was: 0.5h)

> Implement SHOW CREATE TABLE command for Iceberg tables
> ------------------------------------------------------
>
>                 Key: HIVE-25314
>                 URL: https://issues.apache.org/jira/browse/HIVE-25314
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: László Pintér
>            Assignee: László Pintér
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Implement SHOW CREATE TABLE, including the partitioning info as well in the 
> output (even though the HMS table is unpartitioned). That would probably 
> require loading the Iceberg table to acquire the partitioning information.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to