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
Commit 48a4b06
Browse filesBrowse the repository at this point in the historyBrowse files
Capture UC dependencies for vector search indexes (#6655)
## What
Extend the `CaptureUCDependencies` mutator to handle vector search
indexes. A vector search index's `name` is a three-part
`catalog.schema.index` UC identifier. When the catalog or schema is also
defined in the same bundle, the mutator now rewrites those segments to
`${resources.catalogs.<key>.name}` / `${resources.schemas.<key>.name}`
references, so the deploy engine captures the deploy-time dependency and
creates the catalog/schema before the index.
This follows the existing compound-name handling for quality monitors
(`OutputSchemaName`), just with three segments instead of two.
## Why
Without this, a bundle that defines a schema and a vector search index
living in that schema has no captured ordering dependency, so a deploy
can attempt to create the index before its schema exists.
## Tests
- Unit tests: wired the index into the combined
`TestCaptureUCDependencies` and added
`TestCaptureUCDependenciesVectorSearchIndexEdgeCases` (match /
catalog-only / no-match / empty / two-part / nil), plus the
nil-resources panic-safety case.
- Acceptance test:
`bundle/resource_deps/implicit_deps_vector_search_index` mirrors
`implicit_deps_quality_monitor`; all EnvMatrix variants
(terraform/direct × DMS) produce identical output.
This pull request and its description were written by Isaac.
---------
Co-authored-by: Isaac <no-reply@databricks.com>
* Capture the implicit dependency a vector search index has on a catalog or schema defined in the same bundle, so the catalog and schema are deployed first. ([#6655](https://github.com/databricks/cli/pull/6655))
0 commit comments