mchades commented on code in PR #8922:
URL: https://github.com/apache/gravitino/pull/8922#discussion_r2476238389
##########
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:
Should not return incorrect values for compatibility testing and
misconfiguration.
--
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]