Skip to content

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

@metalcore-labs

Description

@metalcore-labs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions