[
https://issues.apache.org/jira/browse/HIVE-25234?focusedWorklogId=610643&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-610643
]
ASF GitHub Bot logged work on HIVE-25234:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 14/Jun/21 12:03
Start Date: 14/Jun/21 12:03
Worklog Time Spent: 10m
Work Description: lcspinter commented on a change in pull request #2382:
URL: https://github.com/apache/hive/pull/2382#discussion_r650885011
##########
File path:
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/IcebergTableUtil.java
##########
@@ -106,4 +111,61 @@ public static PartitionSpec spec(Configuration
configuration, Schema schema) {
});
return builder.build();
}
+
+ public static void updateSpec(Configuration configuration, Table table) {
+ // get the new partition transform spec
+ PartitionSpec newPartitionSpec = spec(configuration, table.schema());
+ if (newPartitionSpec == null) {
+ LOG.debug("Iceberg Partition spec is not updated due to empty partition
spec definition.");
Review comment:
We can get null values if the SessionState is somehow lost. Or the
method is called from a different process (like Tez). I just wanted to make
sure we log this.
--
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 610643)
Time Spent: 40m (was: 0.5h)
> Implement ALTER TABLE ... SET PARTITION SPEC to change partitioning on
> Iceberg tables
> -------------------------------------------------------------------------------------
>
> Key: HIVE-25234
> URL: https://issues.apache.org/jira/browse/HIVE-25234
> 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
>
> Provide a way to change the schema and the Iceberg partitioning specification
> using Hive syntax.
> {code:sql}
> ALTER TABLE tbl SET PARTITION SPEC(...)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)