[
https://issues.apache.org/jira/browse/HIVE-25200?focusedWorklogId=607409&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-607409
]
ASF GitHub Bot logged work on HIVE-25200:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 05/Jun/21 05:53
Start Date: 05/Jun/21 05:53
Worklog Time Spent: 10m
Work Description: pvary commented on a change in pull request #2351:
URL: https://github.com/apache/hive/pull/2351#discussion_r645947350
##########
File path:
iceberg/iceberg-handler/src/test/java/org/apache/iceberg/mr/hive/TestHiveIcebergStorageHandlerNoScan.java
##########
@@ -783,6 +785,43 @@ public void testDropHiveTableWithoutUnderlyingTable()
throws IOException {
shell.executeStatement("DROP TABLE " + identifier);
}
+ @Test
+ public void testAlterTableAddColumns() throws Exception {
+ Assume.assumeTrue("Iceberg - alter table/add column is only relevant for
HiveCatalog",
+ testTableType == TestTables.TestTableType.HIVE_CATALOG);
+
+ TableIdentifier identifier = TableIdentifier.of("default", "customers");
+
+ // Create HMS table with with a property to be translated
+ shell.executeStatement(String.format("CREATE EXTERNAL TABLE
default.customers " +
+ "STORED BY ICEBERG " +
+ "TBLPROPERTIES ('%s'='%s', '%s'='%s', '%s'='%s')",
+ InputFormatConfig.TABLE_SCHEMA,
SchemaParser.toJson(HiveIcebergStorageHandlerTestUtils.CUSTOMER_SCHEMA),
+ InputFormatConfig.PARTITION_SPEC, PartitionSpecParser.toJson(SPEC),
+ InputFormatConfig.EXTERNAL_TABLE_PURGE, "false"));
+
+ shell.executeStatement("ALTER TABLE default.customers ADD COLUMNS " +
Review comment:
Do we want to insert and read data after the alter in another test?
--
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: 607409)
Time Spent: 1.5h (was: 1h 20m)
> Alter table add columns support for Iceberg tables
> --------------------------------------------------
>
> Key: HIVE-25200
> URL: https://issues.apache.org/jira/browse/HIVE-25200
> Project: Hive
> Issue Type: Improvement
> Reporter: Ádám Szita
> Assignee: Ádám Szita
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> Since Iceberg counts as being a non-native Hive table, addColumn operation
> needs to be implemented by the help of Hive meta hooks.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)