[
https://issues.apache.org/jira/browse/HIVE-27208?focusedWorklogId=854831&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-854831
]
ASF GitHub Bot logged work on HIVE-27208:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 04/Apr/23 15:25
Start Date: 04/Apr/23 15:25
Worklog Time Spent: 10m
Work Description: deniskuzZ commented on code in PR #4185:
URL: https://github.com/apache/hive/pull/4185#discussion_r1157417211
##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java:
##########
@@ -875,10 +876,17 @@ public void alterTable(String catName, String dbName,
String tblName, Table newT
if (newTbl.getParameters() != null) {
newTbl.getParameters().remove(hive_metastoreConstants.DDL_TIME);
}
- newTbl.checkValidity(conf);
if (environmentContext == null) {
environmentContext = new EnvironmentContext();
}
+ if (environmentContext.isSetProperties() &&
AlterTableType.RENAME.toString()
Review Comment:
could we do something like AlterTableType.valueOf(..) =
AlterTableType.RENAME? also why do we need to check
`environmentContext.isSetProperties()`?
Issue Time Tracking
-------------------
Worklog Id: (was: 854831)
Time Spent: 1h 50m (was: 1h 40m)
> 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: 1h 50m
> Remaining Estimate: 0h
>
> Add support for renaming iceberg tables.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)