Skip to content

Conversation

@kanterov
Copy link
Collaborator

Changes

Add an enum for schema grant privileges.

It follows documented privileges in Terraform documentation: https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/grants#schema-grants

Why

Using enums gives better typing in JSON schema and allows generating enums in Python code

Tests

By inspecting the resulting JSON schema

@kanterov kanterov temporarily deployed to test-trigger-is August 12, 2025 08:51 — with GitHub Actions Inactive
@kanterov kanterov marked this pull request as ready for review August 12, 2025 08:51
@eng-dev-ecosystem-bot
Copy link
Collaborator

eng-dev-ecosystem-bot commented Aug 12, 2025

Run: 17320288786

Env ✅​pass 🔄​flaky 🙈​skip
✅​ aws linux 308 503
✅​ aws windows 309 502
✅​ aws-ucws linux 421 400
✅​ aws-ucws windows 422 399
✅​ azure linux 308 502
✅​ azure windows 309 501
✅​ azure-ucws linux 421 399
🔄​ azure-ucws windows 415 7 398
✅​ gcp linux 307 504
✅​ gcp windows 308 503
7 failing tests:
Test Name azure-ucws windows
TestFilerRecursiveDelete 🔄​flaky
TestFilerRecursiveDelete/dbfs 🔄​flaky
TestFsCpFileToDirFileNotOverwritten/dbfs_to_dbfs 🔄​flaky
TestFsCpFileToDirFileNotOverwritten/dbfs_to_local 🔄​flaky
TestFsCpFileToDirFileNotOverwritten/dbfs_to_uc-volumes 🔄​flaky
TestFsCpFileToFileFileNotOverwritten 🔄​flaky
TestFsCpFileToFileFileNotOverwritten/local_to_dbfs 🔄​flaky


type SchemaGrantPrivilege string

const (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add the Values function for this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@kanterov kanterov force-pushed the schema-grant-privilege branch from 198a843 to 0f3cad4 Compare August 21, 2025 16:40
@kanterov kanterov temporarily deployed to test-trigger-is August 21, 2025 16:40 — with GitHub Actions Inactive
@kanterov kanterov temporarily deployed to test-trigger-is August 29, 2025 09:34 — with GitHub Actions Inactive
@kanterov kanterov enabled auto-merge August 29, 2025 09:36
@kanterov kanterov added this pull request to the merge queue Aug 29, 2025
Merged via the queue into main with commit 1d38fdc Aug 29, 2025
13 checks passed
@kanterov kanterov deleted the schema-grant-privilege branch August 29, 2025 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants