snazy commented on a change in pull request #2588:
URL: https://github.com/apache/iceberg/pull/2588#discussion_r670787969
##########
File path:
nessie/src/test/java/org/apache/iceberg/nessie/TestBranchVisibility.java
##########
@@ -79,31 +79,34 @@ public void testUpdateCatalogs() {
}
@Test
- public void testCatalogOnReference() throws NessieNotFoundException {
+ public void testCatalogOnReference() {
updateSchema(catalog, tableIdentifier1);
updateSchema(testCatalog, tableIdentifier2);
- String mainHash = tree.getReferenceByName("main").getHash();
// catalog created with ref points to same catalog as above
NessieCatalog refCatalog = initCatalog("test");
testCatalogEquality(refCatalog, testCatalog, true, true);
// catalog created with hash points to same catalog as above
- NessieCatalog refHashCatalog = initCatalog(mainHash);
+ NessieCatalog refHashCatalog = initCatalog("main");
testCatalogEquality(refHashCatalog, catalog, true, true);
}
@Test
- public void testCatalogWithTableNames() throws NessieNotFoundException {
+ public void testCatalogWithTableNames() {
updateSchema(testCatalog, tableIdentifier2);
- String mainHash = tree.getReferenceByName("main").getHash();
+
+ String mainName = "main";
// asking for table@branch gives expected regardless of catalog
Assertions.assertThat(metadataLocation(catalog,
TableIdentifier.of("test-ns", "table1@test")))
.isEqualTo(metadataLocation(testCatalog, tableIdentifier1));
- // asking for table@branch#hash gives expected regardless of catalog
- Assertions.assertThat(metadataLocation(catalog,
TableIdentifier.of("test-ns", "table1@" + mainHash)))
+ // Asking for table@branch gives expected regardless of catalog.
+ // Earlier versions used "table1@" +
tree.getReferenceByName("main").getHash() before, but since
+ // Nessie 0.8.2 the branch name became mandatory and specifying a hash
within a branch is not
+ // possible.
+ Assertions.assertThat(metadataLocation(catalog,
TableIdentifier.of("test-ns", "table1@" + mainName)))
Review comment:
Opened #2830
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]