Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
e4d0571
One-shot with skill
janniklasrose Apr 1, 2026
c2d97f5
Fixes
janniklasrose Apr 17, 2026
3a09e23
acceptance: fix stale vector-search tests from earlier vs-index work
janniklasrose Apr 22, 2026
43d6857
acceptance: add drift/deleted_remotely test for vector_search_indexes
janniklasrose Apr 22, 2026
4f0982b
direct: satisfy exhaustruct for VectorSearchEndpointState and CreateV…
janniklasrose Apr 22, 2026
c9bedf1
Fix dev-mode name prefixing for vector_search_indexes
janniklasrose Apr 22, 2026
1b4b29d
acceptance: cover vector_search prefix in presets_name_prefix
janniklasrose Apr 22, 2026
9c4df31
acceptance: mark vector_search_indexes tests as RequiresUnityCatalog
janniklasrose Apr 22, 2026
404b262
direct: track endpoint UUID on vector search index to detect orphaning
janniklasrose Apr 22, 2026
223c5d2
phases: prompt before deleting or recreating vector search indexes
janniklasrose Apr 29, 2026
bde86cf
direct: wait for index deletion to complete before recreating
janniklasrose Apr 29, 2026
f45a653
direct: split deletion wait into WaitAfterDelete adapter method
janniklasrose Apr 29, 2026
e35c635
direct: document the secondary endpoint lookup in DoCreate
janniklasrose Apr 29, 2026
de293ab
NEXT_CHANGELOG: vector_search_indexes resource
janniklasrose Apr 29, 2026
5c48db0
testserver: drop the VS index pending-deletion buffer
janniklasrose Apr 29, 2026
053add1
test: drop unhappy-path VS index URL case from initialize_urls_test
janniklasrose Apr 29, 2026
1198625
Restore usage_policy_id PLACEHOLDER description in annotations.yml
janniklasrose Apr 29, 2026
38f8005
Revert run-local-node output.txt drift
janniklasrose Apr 29, 2026
019d424
acceptance: drop my_schema fixture from presets_name_prefix
janniklasrose Apr 29, 2026
f00123b
Revert unrelated comment tweak in apply.go::Delete
janniklasrose Apr 29, 2026
653616a
acceptance: drop schema reference from presets_name_prefix index name
janniklasrose Apr 29, 2026
772a69b
direct: preserve index_subtype during VS index remote remap
janniklasrose Apr 30, 2026
cc85db4
direct: treat VS index name and index_subtype as recreate-on-change
janniklasrose Apr 30, 2026
5879daf
presets: skip VS index name prefix when refs are unresolved
janniklasrose Apr 30, 2026
a9e2c1c
validate: enforce matching spec block for VS index_type
janniklasrose Apr 30, 2026
1d5aab7
Revert "validate: enforce matching spec block for VS index_type"
janniklasrose Apr 30, 2026
47253ef
acceptance: regenerate after rebase onto main
janniklasrose Apr 30, 2026
3c95154
direct: propagate endpoint UUID lookup errors for VS indexes
janniklasrose Apr 30, 2026
a02bd73
acceptance: capture VS endpoint-recreate cascade gap
janniklasrose Apr 30, 2026
f940855
acceptance: capture VS index endpoint_name prefixing gap
janniklasrose Apr 30, 2026
4a76acc
acceptance: add bind/unbind tests for vector_search_indexes
janniklasrose Apr 30, 2026
ed3fe3b
changelog: shorten VS indexes entry
janniklasrose Apr 30, 2026
cc9f5cc
direct: wait for VS index Status.Ready=true after create
janniklasrose May 1, 2026
1094197
Allow leaf to be prefixed if wihtout a reference
janniklasrose May 4, 2026
a670352
Simplify dresources/vector_search_index.go PrepareState index spec re…
janniklasrose May 4, 2026
600aea6
direct: drop empty-id state recovery, now handled by #5173
janniklasrose May 4, 2026
407b022
Hack: recreate index if endpoint is being recreated
janniklasrose May 4, 2026
5df6fc6
Re-run 'task generate-validation'
janniklasrose May 6, 2026
d6790e0
acceptance: declare VS endpoints alongside indexes in bundle tests
janniklasrose May 7, 2026
971739a
direct: omit DoUpdate for VS indexes; assert SDK fields are classified
janniklasrose May 7, 2026
ebad98c
Revert "direct: drop empty-id state recovery, now handled by #5173"
janniklasrose May 7, 2026
4c68ad5
acceptance: drop endpoint_uuid skip from with_endpoint plan output
janniklasrose May 7, 2026
5c1944d
Stop applying name prefix to vector_search_indexes
janniklasrose May 7, 2026
6167150
Post-rebase fixups: WaitAfterCreate signature, columns_to_sync now in…
janniklasrose May 18, 2026
f78f31b
Document why RemapState leaves ForceSendFields nil
janniklasrose May 18, 2026
44e24bd
acceptance: remove obsolete presets_name_prefix_vs_index_endpoint test
janniklasrose May 18, 2026
67b417f
schema: regenerate annotations for VectorSearchIndex.index_subtype
janniklasrose May 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@
### Bundles
* Make sure warnings asking for approval are understood by agents ([#5239](https://github.com/databricks/cli/pull/5239))

* Added `vector_search_indexes` as a bundle resource (direct engine only). Supports UC grants and prompts for confirmation on recreate or delete since both are destructive ([#5123](https://github.com/databricks/cli/pull/5123)).

### Dependency updates
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
bundle:
name: test-bundle-$UNIQUE_NAME

sync:
paths: []

resources:
vector_search_indexes:
index1:
name: $INDEX_NAME
endpoint_name: $ENDPOINT_NAME
primary_key: id
index_type: DIRECT_ACCESS
direct_access_index_spec:
schema_json: '{"columns":[{"name":"id","type":"integer"}]}'

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions acceptance/bundle/deployment/bind/vector_search_index/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

>>> [CLI] vector-search-endpoints create-endpoint test-vs-endpoint-[UNIQUE_NAME] STANDARD
{
"name": "test-vs-endpoint-[UNIQUE_NAME]",
"endpoint_type": "STANDARD"
}

>>> [CLI] vector-search-indexes create-index --json {"name":"main.default.test_vs_index_[UNIQUE_NAME]","endpoint_name":"test-vs-endpoint-[UNIQUE_NAME]","primary_key":"id","index_type":"DIRECT_ACCESS","direct_access_index_spec":{"schema_json":"{\"columns\":[{\"name\":\"id\",\"type\":\"integer\"}]}"}}
{
"name": "main.default.test_vs_index_[UNIQUE_NAME]",
"endpoint_name": "test-vs-endpoint-[UNIQUE_NAME]",
"index_type": "DIRECT_ACCESS",
"primary_key": "id"
}

>>> [CLI] bundle deployment bind index1 main.default.test_vs_index_[UNIQUE_NAME] --auto-approve
Updating deployment state...
Successfully bound vector_search_index with an id 'main.default.test_vs_index_[UNIQUE_NAME]'
Run 'bundle deploy' to deploy changes to your workspace

>>> [CLI] bundle deploy --auto-approve
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
Deploying resources...
Updating deployment state...
Deployment complete!

>>> [CLI] vector-search-indexes get-index main.default.test_vs_index_[UNIQUE_NAME]
{
"name": "main.default.test_vs_index_[UNIQUE_NAME]",
"endpoint_name": "test-vs-endpoint-[UNIQUE_NAME]",
"index_type": "DIRECT_ACCESS",
"primary_key": "id"
}

>>> [CLI] bundle deployment unbind index1
Updating deployment state...

>>> [CLI] bundle destroy --auto-approve
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default

Deleting files...
Destroy complete!

>>> [CLI] vector-search-indexes get-index main.default.test_vs_index_[UNIQUE_NAME]
{
"name": "main.default.test_vs_index_[UNIQUE_NAME]",
"endpoint_name": "test-vs-endpoint-[UNIQUE_NAME]",
"index_type": "DIRECT_ACCESS",
"primary_key": "id"
}

>>> [CLI] vector-search-indexes delete-index main.default.test_vs_index_[UNIQUE_NAME]

>>> [CLI] vector-search-endpoints delete-endpoint test-vs-endpoint-[UNIQUE_NAME]
27 changes: 27 additions & 0 deletions acceptance/bundle/deployment/bind/vector_search_index/script
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
ENDPOINT_NAME="test-vs-endpoint-$UNIQUE_NAME"
INDEX_NAME="main.default.test_vs_index_$UNIQUE_NAME"
export ENDPOINT_NAME INDEX_NAME
envsubst < databricks.yml.tmpl > databricks.yml

cleanup() {
trace $CLI vector-search-indexes delete-index "${INDEX_NAME}"
trace $CLI vector-search-endpoints delete-endpoint "${ENDPOINT_NAME}"
}
trap cleanup EXIT

trace $CLI vector-search-endpoints create-endpoint "${ENDPOINT_NAME}" STANDARD | jq '{name, endpoint_type}'

trace $CLI vector-search-indexes create-index --json "{\"name\":\"${INDEX_NAME}\",\"endpoint_name\":\"${ENDPOINT_NAME}\",\"primary_key\":\"id\",\"index_type\":\"DIRECT_ACCESS\",\"direct_access_index_spec\":{\"schema_json\":\"{\\\"columns\\\":[{\\\"name\\\":\\\"id\\\",\\\"type\\\":\\\"integer\\\"}]}\"}}" | jq '{name, endpoint_name, index_type, primary_key}'

trace $CLI bundle deployment bind index1 "${INDEX_NAME}" --auto-approve

trace $CLI bundle deploy --auto-approve

trace $CLI vector-search-indexes get-index "${INDEX_NAME}" | jq '{name, endpoint_name, index_type, primary_key}'

trace $CLI bundle deployment unbind index1

trace $CLI bundle destroy --auto-approve

# Read the pre-defined index again (expecting it still exists and is not deleted):
trace $CLI vector-search-indexes get-index "${INDEX_NAME}" | jq '{name, endpoint_name, index_type, primary_key}'
11 changes: 11 additions & 0 deletions acceptance/bundle/deployment/bind/vector_search_index/test.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Local = true
Cloud = true
RequiresUnityCatalog = true

Ignore = [
".databricks",
"databricks.yml",
]

[EnvMatrix]
DATABRICKS_BUNDLE_ENGINE = ["direct"]
17 changes: 17 additions & 0 deletions acceptance/bundle/invariant/configs/vector_search_index.yml.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
bundle:
name: test-bundle-$UNIQUE_NAME

resources:
vector_search_endpoints:
bar:
name: test-endpoint-$UNIQUE_NAME
endpoint_type: STANDARD
vector_search_indexes:
foo:
name: test-index-$UNIQUE_NAME
endpoint_name: ${resources.vector_search_endpoints.bar.name}
primary_key: id
index_type: DELTA_SYNC
delta_sync_index_spec:
source_table: main.default.source_$UNIQUE_NAME
pipeline_type: TRIGGERED
1 change: 1 addition & 0 deletions acceptance/bundle/invariant/continue_293/out.test.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions acceptance/bundle/invariant/migrate/out.test.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion acceptance/bundle/invariant/migrate/test.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# vector_search_endpoints has no terraform converter
# vector_search_endpoints and vector_search_indexes have no terraform converter
EnvMatrixExclude.no_vector_search_endpoint = ["INPUT_CONFIG=vector_search_endpoint.yml.tmpl"]
EnvMatrixExclude.no_vector_search_index = ["INPUT_CONFIG=vector_search_index.yml.tmpl"]

# Error: Catalog resources are only supported with direct deployment mode
EnvMatrixExclude.no_catalog = ["INPUT_CONFIG=catalog.yml.tmpl"]
Expand Down
1 change: 1 addition & 0 deletions acceptance/bundle/invariant/no_drift/out.test.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions acceptance/bundle/invariant/test.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ EnvMatrix.INPUT_CONFIG = [
"sql_warehouse.yml.tmpl",
"synced_database_table.yml.tmpl",
"vector_search_endpoint.yml.tmpl",
"vector_search_index.yml.tmpl",
"volume.yml.tmpl",
"volume_external.yml.tmpl",
]
Expand Down
53 changes: 53 additions & 0 deletions acceptance/bundle/refschema/out.fields.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3157,6 +3157,59 @@ resources.vector_search_endpoints.*.permissions[*].group_name string ALL
resources.vector_search_endpoints.*.permissions[*].level iam.PermissionLevel ALL
resources.vector_search_endpoints.*.permissions[*].service_principal_name string ALL
resources.vector_search_endpoints.*.permissions[*].user_name string ALL
resources.vector_search_indexes.*.creator string REMOTE
resources.vector_search_indexes.*.delta_sync_index_spec *vectorsearch.DeltaSyncVectorIndexSpecRequest INPUT STATE
resources.vector_search_indexes.*.delta_sync_index_spec *vectorsearch.DeltaSyncVectorIndexSpecResponse REMOTE
resources.vector_search_indexes.*.delta_sync_index_spec.columns_to_index []string ALL
resources.vector_search_indexes.*.delta_sync_index_spec.columns_to_index[*] string ALL
resources.vector_search_indexes.*.delta_sync_index_spec.columns_to_sync []string ALL
resources.vector_search_indexes.*.delta_sync_index_spec.columns_to_sync[*] string ALL
resources.vector_search_indexes.*.delta_sync_index_spec.embedding_source_columns []vectorsearch.EmbeddingSourceColumn ALL
resources.vector_search_indexes.*.delta_sync_index_spec.embedding_source_columns[*] vectorsearch.EmbeddingSourceColumn ALL
resources.vector_search_indexes.*.delta_sync_index_spec.embedding_source_columns[*].embedding_model_endpoint_name string ALL
resources.vector_search_indexes.*.delta_sync_index_spec.embedding_source_columns[*].model_endpoint_name_for_query string ALL
resources.vector_search_indexes.*.delta_sync_index_spec.embedding_source_columns[*].name string ALL
resources.vector_search_indexes.*.delta_sync_index_spec.embedding_vector_columns []vectorsearch.EmbeddingVectorColumn ALL
resources.vector_search_indexes.*.delta_sync_index_spec.embedding_vector_columns[*] vectorsearch.EmbeddingVectorColumn ALL
resources.vector_search_indexes.*.delta_sync_index_spec.embedding_vector_columns[*].embedding_dimension int ALL
resources.vector_search_indexes.*.delta_sync_index_spec.embedding_vector_columns[*].name string ALL
resources.vector_search_indexes.*.delta_sync_index_spec.embedding_writeback_table string ALL
resources.vector_search_indexes.*.delta_sync_index_spec.pipeline_id string REMOTE
resources.vector_search_indexes.*.delta_sync_index_spec.pipeline_type vectorsearch.PipelineType ALL
resources.vector_search_indexes.*.delta_sync_index_spec.source_table string ALL
resources.vector_search_indexes.*.direct_access_index_spec *vectorsearch.DirectAccessVectorIndexSpec ALL
resources.vector_search_indexes.*.direct_access_index_spec.embedding_source_columns []vectorsearch.EmbeddingSourceColumn ALL
resources.vector_search_indexes.*.direct_access_index_spec.embedding_source_columns[*] vectorsearch.EmbeddingSourceColumn ALL
resources.vector_search_indexes.*.direct_access_index_spec.embedding_source_columns[*].embedding_model_endpoint_name string ALL
resources.vector_search_indexes.*.direct_access_index_spec.embedding_source_columns[*].model_endpoint_name_for_query string ALL
resources.vector_search_indexes.*.direct_access_index_spec.embedding_source_columns[*].name string ALL
resources.vector_search_indexes.*.direct_access_index_spec.embedding_vector_columns []vectorsearch.EmbeddingVectorColumn ALL
resources.vector_search_indexes.*.direct_access_index_spec.embedding_vector_columns[*] vectorsearch.EmbeddingVectorColumn ALL
resources.vector_search_indexes.*.direct_access_index_spec.embedding_vector_columns[*].embedding_dimension int ALL
resources.vector_search_indexes.*.direct_access_index_spec.embedding_vector_columns[*].name string ALL
resources.vector_search_indexes.*.direct_access_index_spec.schema_json string ALL
resources.vector_search_indexes.*.endpoint_name string ALL
resources.vector_search_indexes.*.endpoint_uuid string REMOTE STATE
resources.vector_search_indexes.*.id string INPUT
resources.vector_search_indexes.*.index_subtype vectorsearch.IndexSubtype ALL
resources.vector_search_indexes.*.index_type vectorsearch.VectorIndexType ALL
resources.vector_search_indexes.*.lifecycle resources.Lifecycle INPUT
resources.vector_search_indexes.*.lifecycle.prevent_destroy bool INPUT
resources.vector_search_indexes.*.modified_status string INPUT
resources.vector_search_indexes.*.name string ALL
resources.vector_search_indexes.*.primary_key string ALL
resources.vector_search_indexes.*.status *vectorsearch.VectorIndexStatus REMOTE
resources.vector_search_indexes.*.status.index_url string REMOTE
resources.vector_search_indexes.*.status.indexed_row_count int64 REMOTE
resources.vector_search_indexes.*.status.message string REMOTE
resources.vector_search_indexes.*.status.ready bool REMOTE
resources.vector_search_indexes.*.url string INPUT
resources.vector_search_indexes.*.grants.full_name string ALL
resources.vector_search_indexes.*.grants.securable_type string ALL
resources.vector_search_indexes.*.grants[*] catalog.PrivilegeAssignment ALL
resources.vector_search_indexes.*.grants[*].principal string ALL
resources.vector_search_indexes.*.grants[*].privileges []catalog.Privilege ALL
resources.vector_search_indexes.*.grants[*].privileges[*] catalog.Privilege ALL
resources.volumes.*.access_point string REMOTE
resources.volumes.*.browse_only bool REMOTE
resources.volumes.*.catalog_name string ALL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ Deployment complete!
"effective_budget_policy_id": "remote-policy"
}

=== Plan detects drift and proposes update
=== budget_policy_id drift is ignored (effective vs requested mismatch)
>>> [CLI] bundle plan
update vector_search_endpoints.my_endpoint

Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged

>>> [CLI] bundle destroy --auto-approve
The following resources will be deleted:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ endpoint_name="vs-endpoint-${UNIQUE_NAME}"
title "Simulate remote drift: set budget_policy_id outside the bundle"
trace $CLI vector-search-endpoints update-endpoint-budget-policy "${endpoint_name}" "remote-policy"

title "Plan detects drift and proposes update"
trace $CLI bundle plan | contains.py "Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged"
title "budget_policy_id drift is ignored (effective vs requested mismatch)"
trace $CLI bundle plan | contains.py "Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged"
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
bundle:
name: deploy-vs-index-$UNIQUE_NAME

sync:
paths: []

resources:
vector_search_endpoints:
my_endpoint:
name: vs-endpoint-$UNIQUE_NAME
endpoint_type: STANDARD
vector_search_indexes:
my_index:
name: vs-index-$UNIQUE_NAME
endpoint_name: ${resources.vector_search_endpoints.my_endpoint.name}
primary_key: id
index_type: DELTA_SYNC
delta_sync_index_spec:
source_table: main.default.source_$UNIQUE_NAME
pipeline_type: TRIGGERED
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"method": "POST",
"path": "/api/2.0/vector-search/indexes",
"body": {
"delta_sync_index_spec": {
"pipeline_type": "TRIGGERED",
"source_table": "main.default.source_[UNIQUE_NAME]"
},
"endpoint_name": "vs-endpoint-[UNIQUE_NAME]",
"index_type": "DELTA_SYNC",
"name": "vs-index-[UNIQUE_NAME]",
"primary_key": "id"
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 72 additions & 0 deletions acceptance/bundle/resources/vector_search_indexes/basic/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@

>>> [CLI] bundle validate
Name: deploy-vs-index-[UNIQUE_NAME]
Target: default
Workspace:
User: [USERNAME]
Path: /Workspace/Users/[USERNAME]/.bundle/deploy-vs-index-[UNIQUE_NAME]/default

Validation OK!

>>> [CLI] bundle summary
Name: deploy-vs-index-[UNIQUE_NAME]
Target: default
Workspace:
User: [USERNAME]
Path: /Workspace/Users/[USERNAME]/.bundle/deploy-vs-index-[UNIQUE_NAME]/default
Resources:
Vector Search Endpoints:
my_endpoint:
Name: vs-endpoint-[UNIQUE_NAME]
URL: [DATABRICKS_URL]/compute/vector-search/vs-endpoint-[UNIQUE_NAME]?o=[NUMID]
Vector Search Indexes:
my_index:
Name: vs-index-[UNIQUE_NAME]
URL: (not deployed)

>>> [CLI] bundle deploy
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-vs-index-[UNIQUE_NAME]/default/files...
Deploying resources...
Updating deployment state...
Deployment complete!

>>> [CLI] vector-search-indexes get-index vs-index-[UNIQUE_NAME]
{
"name": "vs-index-[UNIQUE_NAME]",
"endpoint_name": "vs-endpoint-[UNIQUE_NAME]",
"index_type": "DELTA_SYNC",
"primary_key": "id"
}

>>> [CLI] bundle summary
Name: deploy-vs-index-[UNIQUE_NAME]
Target: default
Workspace:
User: [USERNAME]
Path: /Workspace/Users/[USERNAME]/.bundle/deploy-vs-index-[UNIQUE_NAME]/default
Resources:
Vector Search Endpoints:
my_endpoint:
Name: vs-endpoint-[UNIQUE_NAME]
URL: [DATABRICKS_URL]/compute/vector-search/vs-endpoint-[UNIQUE_NAME]?o=[NUMID]
Vector Search Indexes:
my_index:
Name: vs-index-[UNIQUE_NAME]
URL: (not deployed)

>>> print_requests.py //vector-search/indexes

>>> [CLI] bundle destroy --auto-approve
The following resources will be deleted:
delete resources.vector_search_endpoints.my_endpoint
delete resources.vector_search_indexes.my_index

This action will result in the deletion of the following Vector Search indexes.
For Delta Sync indexes, the source Delta Table is preserved but the embedding pipeline is removed.
For Direct Access indexes, all upserted vectors are permanently lost:
delete resources.vector_search_indexes.my_index

All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-vs-index-[UNIQUE_NAME]/default

Deleting files...
Destroy complete!
22 changes: 22 additions & 0 deletions acceptance/bundle/resources/vector_search_indexes/basic/script
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
envsubst < databricks.yml.tmpl > databricks.yml

cleanup() {
trace $CLI bundle destroy --auto-approve
rm -f out.requests.txt
}
trap cleanup EXIT

trace $CLI bundle validate

trace $CLI bundle summary

rm -f out.requests.txt
trace $CLI bundle deploy

# Get index details
index_name="vs-index-${UNIQUE_NAME}"
trace $CLI vector-search-indexes get-index "${index_name}" | jq '{name, endpoint_name, index_type, primary_key}'

trace $CLI bundle summary

trace print_requests.py //vector-search/indexes > out.requests.$DATABRICKS_BUNDLE_ENGINE.json
Loading
Loading