[
https://issues.apache.org/jira/browse/HIVE-27208?focusedWorklogId=856072&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-856072
]
ASF GitHub Bot logged work on HIVE-27208:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 11/Apr/23 10:58
Start Date: 11/Apr/23 10:58
Worklog Time Spent: 10m
Work Description: deniskuzZ commented on code in PR #4185:
URL: https://github.com/apache/hive/pull/4185#discussion_r1162647180
##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java:
##########
@@ -918,6 +925,16 @@ public void alterTable(String catName, String dbName,
String tblName, Table newT
}
}
+ private static boolean isRenameOperation(EnvironmentContext
environmentContext) {
+ if (environmentContext.isSetProperties()) {
+ String operation =
environmentContext.getProperties().get(HiveMetaHook.ALTER_TABLE_OPERATION_TYPE);
+ if (operation != null) {
+ return AlterTableType.RENAME.equals(AlterTableType.valueOf(operation));
Review Comment:
````
return operation != null && AlterTableType.RENAME ==
AlterTableType.valueOf(operation)
````
Issue Time Tracking
-------------------
Worklog Id: (was: 856072)
Time Spent: 3h 40m (was: 3.5h)
> Iceberg: Add support for rename table
> -------------------------------------
>
> Key: HIVE-27208
> URL: https://issues.apache.org/jira/browse/HIVE-27208
> Project: Hive
> Issue Type: Improvement
> Reporter: Ayush Saxena
> Assignee: Ayush Saxena
> Priority: Major
> Labels: pull-request-available
> Time Spent: 3h 40m
> Remaining Estimate: 0h
>
> Add support for renaming iceberg tables.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)