databricks / databricks-sdk-py

Databricks SDK for Python (Beta)
https://databricks-sdk-py.readthedocs.io/
Apache License 2.0
318 stars 103 forks source link

[ISSUE] Error with w.shares.share_permissions function / PermissionsList class not defined #683

Open metalcore-labs opened 3 weeks ago

metalcore-labs commented 3 weeks ago

Description An error is triggered when using the shares.share_permissions() function.

NameError: name 'PermissionsList' is not defined.

Reproduction Call the shares.share_permissions() function against any named share.

Expected behavior The function returns a list of permissions to the share including recipient name and access level (SELECT).

Is it a regression? ??

Additional context This is fixed by importing the PermissionsList class in sharing.py. from databricks.sdk.service.catalog import PermissionsList