hdygxsj commented on code in PR #7605:
URL: https://github.com/apache/gravitino/pull/7605#discussion_r2191416109


##########
server/src/main/java/org/apache/gravitino/server/web/rest/ModelOperations.java:
##########
@@ -101,10 +101,10 @@ public Response listModels(
             modelIds =
                 MetadataFilterHelper.filterByExpression(
                     metalake,
-                    "ANY(OWNER,METALAKE,CATALOG,SCHEMA) || "
+                    "ANY(OWNER,METALAKE,CATALOG) || "
                         + "((ANY(USE_CATALOG,METALAKE, CATALOG)) "
-                        + "&& (ANY(USE_SCHEMA,METALAKE, CATALOG, SCHEMA)) "
-                        + "&& (MODEL::OWNER||ANY(USE_MODEL,METALAKE, CATALOG, 
SCHEMA,MODEL)))",
+                        + "&& (SCHEMA::OWNER || (ANY(USE_SCHEMA,METALAKE, 
CATALOG, SCHEMA)) "

Review Comment:
   Here indicates that the Model Owner needs to USE_SCHEMA, and both the MODEL 
OWNER and SCHEMA OWNER need to USE_CATALOG.



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