yuqi1129 commented on code in PR #8922:
URL: https://github.com/apache/gravitino/pull/8922#discussion_r2476257648


##########
core/src/main/java/org/apache/gravitino/catalog/TableOperationDispatcher.java:
##########
@@ -698,6 +698,11 @@ private List<ColumnEntity> toColumnEntities(Column[] 
columns, AuditInfo audit) {
   private boolean isManagedTable(NameIdentifier catalogIdent) {
     CatalogManager catalogManager = 
GravitinoEnv.getInstance().catalogManager();
     CatalogWrapper wrapper = catalogManager.loadCatalogAndWrap(catalogIdent);
+    if (wrapper == null || wrapper.catalog() == null) {
+      // Prevention for mis-configuration or in test env.
+      return false;

Review Comment:
   It needs time to fix all affected tests one by one. This is not a technology 
problem but a time problem. A minor change may need a great time to fix related 
tests.



-- 
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]

Reply via email to