AMashenkov commented on code in PR #3590:
URL: https://github.com/apache/ignite-3/pull/3590#discussion_r1562314561
##########
modules/sql-engine/src/integrationTest/java/org/apache/ignite/internal/sql/engine/ItZoneDdlTest.java:
##########
@@ -142,4 +269,20 @@ private static void tryToAlterZone(String zoneName, int
dataNodesAutoAdjust, boo
failIfNotExists ? zoneName : "IF EXISTS " + zoneName,
dataNodesAutoAdjust
));
}
+
+ private static void tryToSetDefaultZone(String zoneName, boolean
failIfNotExists) {
+ sql(format(
+ "ALTER ZONE {} SET DEFAULT ",
+ failIfNotExists ? zoneName : "IF EXISTS " + zoneName
+ ));
+ }
+
+ @SuppressWarnings("resource")
+ private static Catalog latestCatalog() {
+ IgniteImpl node = CLUSTER.aliveNode();
+ CatalogManager catalogManager = node.catalogManager();
+ Catalog catalog =
catalogManager.catalog(catalogManager.latestCatalogVersion());
Review Comment:
```suggestion
Catalog catalog =
catalogManager.catalog(catalogManager.activeCatalogVersion(...));
```
--
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]