AMashenkov commented on code in PR #5084:
URL: https://github.com/apache/ignite-3/pull/5084#discussion_r1936939753


##########
modules/catalog/src/main/java/org/apache/ignite/internal/catalog/commands/CreateSchemaCommand.java:
##########
@@ -57,6 +65,10 @@ public boolean ifNotExists() {
     /** {@inheritDoc} */
     @Override
     public List<UpdateEntry> get(UpdateContext updateContext) {
+        if (!systemSchemaCommand && CatalogUtils.isSystemSchema(schemaName)) {
+            throw new CatalogValidationException("Reserved system schema with 
name '{}' can't be created.", schemaName);
+        }

Review Comment:
   Let's move to the constructor.



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to