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

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

                Author: ASF GitHub Bot
            Created on: 26/May/21 12:35
            Start Date: 26/May/21 12:35
    Worklog Time Spent: 10m 
      Work Description: lcspinter commented on a change in pull request #2317:
URL: https://github.com/apache/hive/pull/2317#discussion_r639681461



##########
File path: 
iceberg/iceberg-handler/src/test/java/org/apache/iceberg/mr/hive/TestHiveIcebergStorageHandlerNoScan.java
##########
@@ -587,6 +618,7 @@ public void testIcebergAndHmsTableProperties() throws 
Exception {
     expectedIcebergProperties.put("custom_property", "initial_val");
     expectedIcebergProperties.put("EXTERNAL", "TRUE");
     expectedIcebergProperties.put("storage_handler", 
HiveIcebergStorageHandler.class.getName());
+    expectedIcebergProperties.put(serdeConstants.SERIALIZATION_FORMAT, "1");

Review comment:
       In this PR, I also added a new logic to the `IcebergMetaHook` to copy 
the serdeproperties from HMS table to the catalog properties. This change was 
required since the hive syntax allows to provide additional serdeproperties 
when creating non-native tables. Like:
   `CREATE TABLE .... STORED BY ICEBERG WITH 
SERDEPROPERTIES('my_key'='my_value')`
   
   When we create a table, hive automatically updates the serdeproperties with 
the `SERIALIZATION_FORMAT` set to `1`( if it's not overwritten from the DDL). 




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

    Worklog Id:     (was: 602296)
    Time Spent: 1h  (was: 50m)

> Add support for CREATE TABLE ... STORED BY ICEBERG statements
> -------------------------------------------------------------
>
>                 Key: HIVE-25162
>                 URL: https://issues.apache.org/jira/browse/HIVE-25162
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: László Pintér
>            Assignee: László Pintér
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h
>  Remaining Estimate: 0h
>




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

Reply via email to