Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for schema's in deployment bind/unbind commands #2406

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anton-107
Copy link
Contributor

Changes

  1. Changed FindResourceByConfigKeyto return schema resources
  2. Implemented the Exists method for schema resources

Why

This PR adds support for schema resources in deployment operations, enabling users to:

  • Bind schemas using databricks bundle deployment bind <myschema_key> <schema_full_name>
  • Unbind schemas using databricks bundle deployment unbind <myschema_key>

Where:

  • myschema_key is a resource key defined in the bundle's .yml file
  • schema_full_name references an existing schema in the Databricks workspace

These capabilities allow for more flexible resource management of schema's within Databricks asset bundles.

Tests

Added new integration test that tests bind and unbind methods together with bundle deployment and destruction

@anton-107 anton-107 marked this pull request as ready for review February 28, 2025 16:43
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.

1 participant