You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[ISSUE] Privilege EXTERNAL_USE_LOCATION not mapped to enum value #896
Description
The enum class com.databricks.sdk.service.catalog.Privilege does not contain enum constant for EXTERNAL_USE_LOCATION. Even if API call returns this privilege, it's removed after mapping to Java objects.
Raw API call to endpoint GET /api/2.1/unity-catalog/privilege-assignments/EXTERNAL_LOCATION/external_location_123 properly returns the privilege.
Reproduction
var assignments = workspaceClient.grants().get("EXTERNAL_LOCATION", "external_location_123").getPrivilegeAssignments();
The above should be executed on an already set-up WorkspaceClient instance, with an existing external location named external_location_123 which has the EXTERNAL_USE_LOCATION privilege assigned to some principal.
Expected behavior
Principal assignments returned from the SDK call should include privilege EXTERNAL_USE_LOCATION.
Is it a regression?
Tested on the currently latest SDK version (0.146.0), as well as an older one (0.104.0) - same result.
Debug Logs
N/A
Other Information
Version: 0.146.0 (also looked at the sources for 0.149.0 - the same)
Additional context
I was looking for a script to regenerate Java classes based on API definition (to contribute regenerated classes), but I wasn't able to find one in this repository.
Activity