lcspinter commented on a change in pull request #2230: URL: https://github.com/apache/hive/pull/2230#discussion_r622159586
########## File path: iceberg/iceberg-handler/src/test/java/org/apache/iceberg/mr/hive/TestHiveIcebergStorageHandlerNoScan.java ########## @@ -535,6 +538,38 @@ public void testCreateTableWithoutColumnComments() { } } + @Test + public void testAlterTableProperties() { + TableIdentifier identifier = TableIdentifier.of("default", "customers"); + shell.executeStatement("CREATE EXTERNAL TABLE customers (" + + "t_int INT, " + + "t_string STRING) " + + "STORED BY 'org.apache.iceberg.mr.hive.HiveIcebergStorageHandler' " + + testTables.locationForCreateTableSQL(identifier) + + testTables.propertiesForCreateTableSQL(ImmutableMap.of())); + String propKey = "dummy"; + String propValue = "dummy_val"; + shell.executeStatement(String.format("ALTER TABLE customers SET TBLPROPERTIES('%s'='%s')", propKey, propValue)); + // Check the Iceberg table parameters + Table icebergTable = testTables.loadTable(identifier); + Assert.assertTrue(icebergTable.properties().containsKey(propKey)); + Assert.assertEquals(icebergTable.properties().get(propKey), propValue); + propValue = "new_dummy_val"; + shell.executeStatement(String.format("ALTER TABLE customers SET TBLPROPERTIES('%s'='%s')", propKey, propValue)); Review comment: Fixed. ########## File path: iceberg/iceberg-handler/src/test/java/org/apache/iceberg/mr/hive/TestHiveIcebergStorageHandlerNoScan.java ########## @@ -29,10 +29,13 @@ import java.util.Properties; import java.util.Set; import java.util.stream.Collectors; + +import org.apache.commons.lang3.exception.ExceptionUtils; Review comment: yes. -- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org