mchades commented on code in PR #14630:
URL: https://github.com/apache/gravitino/pull/14630#discussion_r4475446538


##########
docs/manage-policies-in-gravitino.md:
##########
@@ -391,6 +500,27 @@ boolean omittedPolicyDetails = 
detailList.hasInaccessiblePolicies();
 The existing `listPolicies()` and `listPolicyInfos()` methods continue to 
return only the visible
 arrays.
 
+</TabItem>
+<TabItem value="python" label="Python">
+
+```python
+name_list = customers.supports_policies().list_policies_with_visibility()

Review Comment:
   `customers` is only initialized in the Java tab. Running this Python example 
with an initialized `client` raises `NameError: name 'customers' is not 
defined`. Please import `NameIdentifier` and load the table with 
`client.load_catalog("catalog1").as_table_catalog().load_table(NameIdentifier.of("schema1",
 "customers"))` before this call.



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