[
https://issues.apache.org/jira/browse/HIVE-26190?focusedWorklogId=766717&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-766717
]
ASF GitHub Bot logged work on HIVE-26190:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 05/May/22 15:08
Start Date: 05/May/22 15:08
Worklog Time Spent: 10m
Work Description: lcspinter commented on code in PR #3259:
URL: https://github.com/apache/hive/pull/3259#discussion_r866015481
##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergMetaHook.java:
##########
@@ -183,6 +183,11 @@ public void
preCreateTable(org.apache.hadoop.hive.metastore.api.Table hmsTable)
catalogProperties.put(InputFormatConfig.TABLE_SCHEMA,
SchemaParser.toJson(schema));
catalogProperties.put(InputFormatConfig.PARTITION_SPEC,
PartitionSpecParser.toJson(spec));
setCommonHmsTablePropertiesForIceberg(hmsTable);
+
+
hmsTable.getParameters().computeIfPresent(BaseMetastoreTableOperations.METADATA_LOCATION_PROP,
(k, v) -> {
Review Comment:
Yes, you're right. Previously I had some code in the mapping function and I
forgot the refactor it.
Issue Time Tracking
-------------------
Worklog Id: (was: 766717)
Time Spent: 2h 20m (was: 2h 10m)
> Implement create iceberg table with metadata location
> -----------------------------------------------------
>
> Key: HIVE-26190
> URL: https://issues.apache.org/jira/browse/HIVE-26190
> Project: Hive
> Issue Type: Improvement
> Reporter: László Pintér
> Assignee: László Pintér
> Priority: Major
> Labels: pull-request-available
> Time Spent: 2h 20m
> Remaining Estimate: 0h
>
> We should support the following syntax
> {code:sql}
> CREATE TABLE ... TBLPROPERTIES('metadata_location='some_location'){code}
> This would allow us to create an iceberg table by reusing an already existing
> metadata.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)