You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/10/18 13:32:48 UTC
[GitHub] [iceberg] gaborkaszab commented on a diff in pull request #5763: Core, Hive-metastore: Table owner can be incorrect in HMS
gaborkaszab commented on code in PR #5763:
URL: https://github.com/apache/iceberg/pull/5763#discussion_r998231170
##########
hive-metastore/src/test/java/org/apache/iceberg/hive/TestHiveCatalog.java:
##########
@@ -247,12 +241,29 @@ public void testReplaceTxnBuilder() throws Exception {
}
}
+ @Test
+ public void testCreateTableWithOwner() throws Exception {
+ Schema schema = getTestSchema();
+ PartitionSpec spec = PartitionSpec.builderFor(schema).bucket("data", 16).build();
+ TableIdentifier tableIdent = TableIdentifier.of(DB_NAME, "tbl");
+ String location = temp.newFolder("tbl").toString();
+ String owner = "some_owner";
+ ImmutableMap<String, String> properties =
Review Comment:
> Does this also write the username to the HMS table property list? Is this what we expect?
Good point! This was also added ad an HMS table property but I think it's not needed. I changed the code to only set the owner of the table but not to add the owner field as a table property to HMS.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org