Skip to content

Rename registered models in place; a model in a renamed catalog or schema keeps its versions - #7379

Merged
denik merged 49 commits into
denik/parent-implies-providedfrom
denik/models-rename
Nov 25, 2026
Merged

denik merged 49 commits into
denik/parent-implies-providedfrom
denik/models-rename

Conversation

@denik

@denik denik commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Changing a registered model's name now renames it in place (PATCH new_name) instead of deleting and recreating it, so the model keeps its versions. The recreate only matched Terraform, which is gone.

A model in a renamed catalog or schema (schema_name: ${resources.schemas.<s>.name}) now follows its parent the way volumes do since #7343: with IDFromState, the framework re-keys it without a request (state_only). Before, it was recreated where the parent's rename moved it, which deleted its versions.

UC rejects an update that sets both name and new_name, so a rename leaves name out (#7408 makes the test server reject it too). Changed aliases are set before the rename, under the current name, so a failed alias leaves the model unrenamed and the state still pointing at it.

When a parent's rename moved a model and the model has its own changes too, the framework now records the moved ID before updating it there. The parent is applied first, so a failed or interrupted update would leave the state at the old ID, and a model has no internal ID to be found by at its new one: every later deploy would fail with RESOURCE_ALREADY_EXISTS. Volumes and schemas do not need this; the plan finds them by their volume_id and schema_id, as on main.

Builds on #7718 (merged). UC secrets get the same fix in #7381.

Tests

New tests (Cloud = true unless noted):

  • registered_models/rename: the model is renamed in place with the same created_at, a rename together with a comment change goes in one PATCH, and a schema rename together with a comment change goes in one PATCH at the new path.
  • registered_models/rename_case_only: a case-only rename leaves the model as it was (UC keeps names lowercase).
  • registered_models/rename_with_aliases (local only, versions come from the test server): the alias is set before the rename, the versions move with the model, and an alias to a missing version fails before anything is renamed.
  • registered_models/rename_catalog_and_schema: the model follows its catalog and schema renamed in one deploy, with no request.
  • registered_models/move_from_renamed_schema: moving the model out of a renamed schema recreates it and deletes the old one where the rename moved it.
  • registered_models/rename_to_existing_name: renaming onto a taken name fails with RESOURCE_ALREADY_EXISTS and keeps both models.
  • grants/registered_model_change_name: the model's grants follow its in-place rename.
  • registered_models/parent_rename_interrupted (local only): the deploy is killed on the model's update after its schema's rename; the next deploy updates the model at its new path.
  • registered_models/parent_rename_out_of_band (Badness): a model has no recorded id, so when its schema is renamed outside the bundle the plan creates it again and UC rejects the create. Same on main.

A model added to existing parent-rename tests:

  • catalogs/rename: the model follows a catalog rename with the schema and the volume.
  • schemas/rename_then_change: after its schema is renamed, the model's update, rename and move to another schema all reach it at its new path.

Updated goldens:

  • registered_models/basic and migrate/auto/registered-model-rename: a name change now renames.
  • schemas/rename_with_model_and_secret: the model now follows the schema's rename; the secret is still recreated.
  • schemas/rename_referenced_by_name (from Delete the old resource when its name follows a renamed schema #7718): the model named after the renamed schema is renamed in place.

The test server now matches UC (checked on AWS, Azure and GCP) for a missing model (Routine or Model '...' does not exist.), a create or rename onto a taken name (400 RESOURCE_ALREADY_EXISTS, Routine or Model '<name>' already exists), and model names, which it stores lowercase and looks up case-insensitively.

This pull request and its description were written by Isaac.

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Commit: 0ce0887b5 | Workflow run

Regression test report

Selected 20 changed tests (limit=20, 0 not selected)

46 tests: regression=43 unreleased=0 coverage=3 failing=0
test branch main (c450460) latest (v1.28.0)
TestAccept/bundle/migrate/auto/registered-model-rename/DMS= ✅ ❌ ❌
TestAccept/bundle/migrate/auto/volume-type-change/DMS= ✅ ✅ ✅
TestAccept/bundle/resources/catalogs/rename/DMS=/READPLAN= ✅ ❌ ❌
TestAccept/bundle/resources/catalogs/rename/DMS=/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/resources/catalogs/rename/DMS=true/READPLAN= ✅ ❌ ❌
TestAccept/bundle/resources/catalogs/rename/DMS=true/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/resources/grants/registered_model_change_name/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/grants/registered_model_change_name/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/basic/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/basic/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/move_from_renamed_schema/DMS=/READPLAN= ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/move_from_renamed_schema/DMS=/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/move_from_renamed_schema/DMS=true/READPLAN= ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/move_from_renamed_schema/DMS=true/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/parent_rename_interrupted/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/parent_rename_out_of_band/DMS= ✅ ✅ ✅
TestAccept/bundle/resources/registered_models/parent_rename_out_of_band/DMS=true ✅ ✅ ✅
TestAccept/bundle/resources/registered_models/rename/DMS=/READPLAN= ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/rename/DMS=/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/rename/DMS=true/READPLAN= ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/rename/DMS=true/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/rename_case_only/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/rename_case_only/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/rename_catalog_and_schema/DMS=/READPLAN= ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/rename_catalog_and_schema/DMS=/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/rename_catalog_and_schema/DMS=true/READPLAN= ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/rename_catalog_and_schema/DMS=true/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/rename_to_existing_name/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/rename_to_existing_name/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/rename_with_aliases/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/rename_with_aliases/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/recreate_interrupted/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/recreate_out_of_band/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/recreate_out_of_band/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_referenced_by_name/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_referenced_by_name/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_then_change/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_then_change/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_with_model_and_secret/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_with_model_and_secret/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/volumes/move_from_renamed_schema/DMS=/READPLAN= ✅ ❌ ❌
TestAccept/bundle/resources/volumes/move_from_renamed_schema/DMS=/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/resources/volumes/move_from_renamed_schema/DMS=true/READPLAN= ✅ ❌ ❌
TestAccept/bundle/resources/volumes/move_from_renamed_schema/DMS=true/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/resources/volumes/uppercase-name/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/volumes/uppercase-name/DMS=true ✅ ❌ ❌
TestAccept/bundle/migrate/auto/registered-model-rename/DMS=: branch ✅ | main (c450460) ❌ | latest (v1.28.0) ❌

main (c450460):

acceptance_test.go:1402: Diff:
        --- bundle/migrate/auto/registered-model-rename/output.txt
        +++ /tmp/TestAcceptbundlemigrateautoregistered-model-renameDMS=1765183985/002/output.txt
        @@ -6,15 +6,16 @@
         === Rename the model (an updatable id field) and deploy on direct
         
         >>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle deploy
        -Warn: migration to direct: registered_models.my_model: name differs between config ("themodel-[UNIQUE_NAME]-renamed") and terraform state ("themodel-[UNIQUE_NAME]"); this resource will be renamed.
        +Warn: migration to direct: registered_models.my_model: name differs between config ("themodel-[UNIQUE_NAME]-renamed") and terraform state ("themodel-[UNIQUE_NAME]"); this resource will be recreated.
         Notice: migrating your bundle to direct deployment engine (https://github.com/databricks/cli/issues/6765).
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files...
         Migrated 2 resources to direct deployment engine.
        -Updated registered_models.my_model
        +Recreated registered_models.my_model
         Files: 2 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 1 unchanged
        +Resources: 1 created, 0 changed, 1 deleted, 1 unchanged
         
         >>> print_migration_telemetry
        +direct_migrate_recreate_planned true
         direct_migrated_via_env true
         
         === Redeploy on direct: the model now matches config, so the plan is a clean no-op

latest (v1.28.0): same output as main (c450460)

TestAccept/bundle/resources/catalogs/rename/DMS=/READPLAN=: branch ✅ | main (c450460) ❌ | latest (v1.28.0) ❌

main (c450460):

acceptance_test.go:1402: Diff:
        --- bundle/resources/catalogs/rename/output.txt
        +++ /tmp/TestAcceptbundleresourcescatalogsrenameDMS=READPLAN=3156520722/002/output.txt
        @@ -79,6 +79,7 @@
             }
           },
           "resources.registered_models.model1": {
        +    "id": "test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel",
             "depends_on": [
               {
                 "node": "resources.catalogs.catalog1",
        @@ -89,8 +90,7 @@
                 "label": "${resources.schemas.schema1.name}"
               }
             ],
        -    "action": "update_id",
        -    "state_only": true,
        +    "action": "recreate",
             "new_state": {
               "value": {
                 "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        @@ -108,8 +108,8 @@
             },
             "changes": {
               "catalog_name": {
        -        "action": "update_id",
        -        "reason": "parent_renamed",
        +        "action": "recreate",
        +        "reason": "id_field",
                 "old": "test_catalog_[UNIQUE_NAME]",
                 "new": "test_catalog_renamed_[UNIQUE_NAME]",
                 "remote": "test_catalog_[UNIQUE_NAME]"
        @@ -224,9 +224,10 @@
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        +Recreated registered_models.model1
         Updated catalogs.catalog1
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 3 unchanged
        +Resources: 1 created, 1 changed, 1 deleted, 2 unchanged
         
         >>> print_requests.py //unity-catalog
         {
        @@ -238,6 +237,19 @@
             "new_name": "test_catalog_renamed_[UNIQUE_NAME]"
           }
         }
        +{
        +  "method": "DELETE",
        +  "path": "/api/2.1/unity-catalog/models/test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel"
        +}
        +{
        +  "method": "POST",
        +  "path": "/api/2.1/unity-catalog/models",
        +  "body": {
        +    "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        +    "name": "mymodel",
        +    "schema_name": "myschema"
        +  }
        +}
         
         === The old catalog is gone and the schema, the volume and the model are under the new one, not recreated
         old catalog is gone
        @@ -260,7 +272,7 @@
         {
           "full_name": "test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel",
           "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        -  "created_at": [MODEL_CREATED_AT]
        +  "created_at": [UNIX_TIME_MILLIS]
         }
         
         === The state tracks the new paths
        
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/volumes/test_catalog_renamed_l23yiw6moneqtgk6a6rcuvojt4.myschema.myvolume"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/test_catalog_renamed_l23yiw6moneqtgk6a6rcuvojt4.myschema.mymodel"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/test_catalog_renamed_l23yiw6moneqtgk6a6rcuvojt4.myschema",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/catalogs/test_catalog_renamed_l23yiw6moneqtgk6a6rcuvojt4",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/catalogs/rename/output.txt
        +++ /tmp/TestAcceptbundleresourcescatalogsrenameDMS=READPLAN=3594544743/002/output.txt
        @@ -79,6 +79,7 @@
             }
           },
           "resources.registered_models.model1": {
        +    "id": "test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel",
             "depends_on": [
               {
                 "node": "resources.catalogs.catalog1",
        @@ -89,8 +90,7 @@
                 "label": "${resources.schemas.schema1.name}"
               }
             ],
        -    "action": "update_id",
        -    "state_only": true,
        +    "action": "recreate",
             "new_state": {
               "value": {
                 "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        @@ -108,8 +108,8 @@
             },
             "changes": {
               "catalog_name": {
        -        "action": "update_id",
        -        "reason": "parent_renamed",
        +        "action": "recreate",
        +        "reason": "id_field",
                 "old": "test_catalog_[UNIQUE_NAME]",
                 "new": "test_catalog_renamed_[UNIQUE_NAME]",
                 "remote": "test_catalog_[UNIQUE_NAME]"
        @@ -224,9 +224,10 @@
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        +Recreated registered_models.model1
         Updated catalogs.catalog1
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 3 unchanged
        +Resources: 1 created, 1 changed, 1 deleted, 2 unchanged
         
         >>> print_requests.py //unity-catalog
         {
        @@ -238,6 +237,19 @@
             "new_name": "test_catalog_renamed_[UNIQUE_NAME]"
           }
         }
        +{
        +  "method": "DELETE",
        +  "path": "/api/2.1/unity-catalog/models/test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel"
        +}
        +{
        +  "method": "POST",
        +  "path": "/api/2.1/unity-catalog/models",
        +  "body": {
        +    "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        +    "name": "mymodel",
        +    "schema_name": "myschema"
        +  }
        +}
         
         === The old catalog is gone and the schema, the volume and the model are under the new one, not recreated
         old catalog is gone
        @@ -260,7 +272,7 @@
         {
           "full_name": "test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel",
           "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        -  "created_at": [MODEL_CREATED_AT]
        +  "created_at": [UNIX_TIME_MILLIS]
         }
         
         === The state tracks the new paths
        
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/test_catalog_renamed_emddvlpuv5b7jjdupuiolmumj4.myschema.mymodel"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/volumes/test_catalog_renamed_emddvlpuv5b7jjdupuiolmumj4.myschema.myvolume"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/test_catalog_renamed_emddvlpuv5b7jjdupuiolmumj4.myschema",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/catalogs/test_catalog_renamed_emddvlpuv5b7jjdupuiolmumj4",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
TestAccept/bundle/resources/catalogs/rename/DMS=/READPLAN=1: branch ✅ | main (c450460) ❌ | latest (v1.28.0) ❌

main (c450460):

acceptance_test.go:1402: Diff:
        --- bundle/resources/catalogs/rename/output.txt
        +++ /tmp/TestAcceptbundleresourcescatalogsrenameDMS=READPLAN=13084195251/002/output.txt
        @@ -79,6 +79,7 @@
             }
           },
           "resources.registered_models.model1": {
        +    "id": "test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel",
             "depends_on": [
               {
                 "node": "resources.catalogs.catalog1",
        @@ -89,8 +90,7 @@
                 "label": "${resources.schemas.schema1.name}"
               }
             ],
        -    "action": "update_id",
        -    "state_only": true,
        +    "action": "recreate",
             "new_state": {
               "value": {
                 "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        @@ -108,8 +108,8 @@
             },
             "changes": {
               "catalog_name": {
        -        "action": "update_id",
        -        "reason": "parent_renamed",
        +        "action": "recreate",
        +        "reason": "id_field",
                 "old": "test_catalog_[UNIQUE_NAME]",
                 "new": "test_catalog_renamed_[UNIQUE_NAME]",
                 "remote": "test_catalog_[UNIQUE_NAME]"
        @@ -224,9 +224,10 @@
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        +Recreated registered_models.model1
         Updated catalogs.catalog1
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 3 unchanged
        +Resources: 1 created, 1 changed, 1 deleted, 2 unchanged
         
         >>> print_requests.py //unity-catalog
         {
        @@ -238,6 +237,19 @@
             "new_name": "test_catalog_renamed_[UNIQUE_NAME]"
           }
         }
        +{
        +  "method": "DELETE",
        +  "path": "/api/2.1/unity-catalog/models/test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel"
        +}
        +{
        +  "method": "POST",
        +  "path": "/api/2.1/unity-catalog/models",
        +  "body": {
        +    "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        +    "name": "mymodel",
        +    "schema_name": "myschema"
        +  }
        +}
         
         === The old catalog is gone and the schema, the volume and the model are under the new one, not recreated
         old catalog is gone
        @@ -260,7 +272,7 @@
         {
           "full_name": "test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel",
           "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        -  "created_at": [MODEL_CREATED_AT]
        +  "created_at": [UNIX_TIME_MILLIS]
         }
         
         === The state tracks the new paths
        
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/volumes/test_catalog_renamed_d5kkkbtzqnffvc3dtkvkhgmqoq.myschema.myvolume"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/test_catalog_renamed_d5kkkbtzqnffvc3dtkvkhgmqoq.myschema.mymodel"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/test_catalog_renamed_d5kkkbtzqnffvc3dtkvkhgmqoq.myschema",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/catalogs/test_catalog_renamed_d5kkkbtzqnffvc3dtkvkhgmqoq",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/catalogs/rename/output.txt
        +++ /tmp/TestAcceptbundleresourcescatalogsrenameDMS=READPLAN=1600050464/002/output.txt
        @@ -79,6 +79,7 @@
             }
           },
           "resources.registered_models.model1": {
        +    "id": "test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel",
             "depends_on": [
               {
                 "node": "resources.catalogs.catalog1",
        @@ -89,8 +90,7 @@
                 "label": "${resources.schemas.schema1.name}"
               }
             ],
        -    "action": "update_id",
        -    "state_only": true,
        +    "action": "recreate",
             "new_state": {
               "value": {
                 "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        @@ -108,8 +108,8 @@
             },
             "changes": {
               "catalog_name": {
        -        "action": "update_id",
        -        "reason": "parent_renamed",
        +        "action": "recreate",
        +        "reason": "id_field",
                 "old": "test_catalog_[UNIQUE_NAME]",
                 "new": "test_catalog_renamed_[UNIQUE_NAME]",
                 "remote": "test_catalog_[UNIQUE_NAME]"
        @@ -224,9 +224,10 @@
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        +Recreated registered_models.model1
         Updated catalogs.catalog1
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 3 unchanged
        +Resources: 1 created, 1 changed, 1 deleted, 2 unchanged
         
         >>> print_requests.py //unity-catalog
         {
        @@ -238,6 +237,19 @@
             "new_name": "test_catalog_renamed_[UNIQUE_NAME]"
           }
         }
        +{
        +  "method": "DELETE",
        +  "path": "/api/2.1/unity-catalog/models/test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel"
        +}
        +{
        +  "method": "POST",
        +  "path": "/api/2.1/unity-catalog/models",
        +  "body": {
        +    "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        +    "name": "mymodel",
        +    "schema_name": "myschema"
        +  }
        +}
         
         === The old catalog is gone and the schema, the volume and the model are under the new one, not recreated
         old catalog is gone
        @@ -260,7 +272,7 @@
         {
           "full_name": "test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel",
           "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        -  "created_at": [MODEL_CREATED_AT]
        +  "created_at": [UNIX_TIME_MILLIS]
         }
         
         === The state tracks the new paths
        
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/volumes/test_catalog_renamed_4ia5ved6tbayvlazxszolbxhcq.myschema.myvolume"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/test_catalog_renamed_4ia5ved6tbayvlazxszolbxhcq.myschema.mymodel"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/test_catalog_renamed_4ia5ved6tbayvlazxszolbxhcq.myschema",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/catalogs/test_catalog_renamed_4ia5ved6tbayvlazxszolbxhcq",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
TestAccept/bundle/resources/catalogs/rename/DMS=true/READPLAN=: branch ✅ | main (c450460) ❌ | latest (v1.28.0) ❌

main (c450460):

acceptance_test.go:1402: Diff:
        --- bundle/resources/catalogs/rename/output.txt
        +++ /tmp/TestAcceptbundleresourcescatalogsrenameDMS=trueREADPLAN=327204943/002/output.txt
        @@ -79,6 +79,7 @@
             }
           },
           "resources.registered_models.model1": {
        +    "id": "test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel",
             "depends_on": [
               {
                 "node": "resources.catalogs.catalog1",
        @@ -89,8 +90,7 @@
                 "label": "${resources.schemas.schema1.name}"
               }
             ],
        -    "action": "update_id",
        -    "state_only": true,
        +    "action": "recreate",
             "new_state": {
               "value": {
                 "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        @@ -108,8 +108,8 @@
             },
             "changes": {
               "catalog_name": {
        -        "action": "update_id",
        -        "reason": "parent_renamed",
        +        "action": "recreate",
        +        "reason": "id_field",
                 "old": "test_catalog_[UNIQUE_NAME]",
                 "new": "test_catalog_renamed_[UNIQUE_NAME]",
                 "remote": "test_catalog_[UNIQUE_NAME]"
        @@ -224,9 +224,10 @@
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        +Recreated registered_models.model1
         Updated catalogs.catalog1
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 3 unchanged
        +Resources: 1 created, 1 changed, 1 deleted, 2 unchanged
         
         >>> print_requests.py //unity-catalog
         {
        @@ -238,6 +237,19 @@
             "new_name": "test_catalog_renamed_[UNIQUE_NAME]"
           }
         }
        +{
        +  "method": "DELETE",
        +  "path": "/api/2.1/unity-catalog/models/test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel"
        +}
        +{
        +  "method": "POST",
        +  "path": "/api/2.1/unity-catalog/models",
        +  "body": {
        +    "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        +    "name": "mymodel",
        +    "schema_name": "myschema"
        +  }
        +}
         
         === The old catalog is gone and the schema, the volume and the model are under the new one, not recreated
         old catalog is gone
        @@ -260,7 +272,7 @@
         {
           "full_name": "test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel",
           "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        -  "created_at": [MODEL_CREATED_AT]
        +  "created_at": [UNIX_TIME_MILLIS]
         }
         
         === The state tracks the new paths
        
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/test_catalog_renamed_q5vzzfpmf5ayrkngt45fnzrnwi.myschema.mymodel"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/volumes/test_catalog_renamed_q5vzzfpmf5ayrkngt45fnzrnwi.myschema.myvolume"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/test_catalog_renamed_q5vzzfpmf5ayrkngt45fnzrnwi.myschema",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/catalogs/test_catalog_renamed_q5vzzfpmf5ayrkngt45fnzrnwi",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/catalogs/rename/output.txt
        +++ /tmp/TestAcceptbundleresourcescatalogsrenameDMS=trueREADPLAN=1358605746/002/output.txt
        @@ -79,6 +79,7 @@
             }
           },
           "resources.registered_models.model1": {
        +    "id": "test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel",
             "depends_on": [
               {
                 "node": "resources.catalogs.catalog1",
        @@ -89,8 +90,7 @@
                 "label": "${resources.schemas.schema1.name}"
               }
             ],
        -    "action": "update_id",
        -    "state_only": true,
        +    "action": "recreate",
             "new_state": {
               "value": {
                 "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        @@ -108,8 +108,8 @@
             },
             "changes": {
               "catalog_name": {
        -        "action": "update_id",
        -        "reason": "parent_renamed",
        +        "action": "recreate",
        +        "reason": "id_field",
                 "old": "test_catalog_[UNIQUE_NAME]",
                 "new": "test_catalog_renamed_[UNIQUE_NAME]",
                 "remote": "test_catalog_[UNIQUE_NAME]"
        @@ -224,9 +224,10 @@
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        +Recreated registered_models.model1
         Updated catalogs.catalog1
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 3 unchanged
        +Resources: 1 created, 1 changed, 1 deleted, 2 unchanged
         
         >>> print_requests.py //unity-catalog
         {
        @@ -238,6 +237,19 @@
             "new_name": "test_catalog_renamed_[UNIQUE_NAME]"
           }
         }
        +{
        +  "method": "DELETE",
        +  "path": "/api/2.1/unity-catalog/models/test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel"
        +}
        +{
        +  "method": "POST",
        +  "path": "/api/2.1/unity-catalog/models",
        +  "body": {
        +    "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        +    "name": "mymodel",
        +    "schema_name": "myschema"
        +  }
        +}
         
         === The old catalog is gone and the schema, the volume and the model are under the new one, not recreated
         old catalog is gone
        @@ -260,7 +272,7 @@
         {
           "full_name": "test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel",
           "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        -  "created_at": [MODEL_CREATED_AT]
        +  "created_at": [UNIX_TIME_MILLIS]
         }
         
         === The state tracks the new paths
        
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/test_catalog_renamed_jv72usdrh5bcvliedzqawrztmi.myschema.mymodel"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/volumes/test_catalog_renamed_jv72usdrh5bcvliedzqawrztmi.myschema.myvolume"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/test_catalog_renamed_jv72usdrh5bcvliedzqawrztmi.myschema",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/catalogs/test_catalog_renamed_jv72usdrh5bcvliedzqawrztmi",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
TestAccept/bundle/resources/catalogs/rename/DMS=true/READPLAN=1: branch ✅ | main (c450460) ❌ | latest (v1.28.0) ❌

main (c450460):

acceptance_test.go:1402: Diff:
        --- bundle/resources/catalogs/rename/output.txt
        +++ /tmp/TestAcceptbundleresourcescatalogsrenameDMS=trueREADPLAN=12443524104/002/output.txt
        @@ -79,6 +79,7 @@
             }
           },
           "resources.registered_models.model1": {
        +    "id": "test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel",
             "depends_on": [
               {
                 "node": "resources.catalogs.catalog1",
        @@ -89,8 +90,7 @@
                 "label": "${resources.schemas.schema1.name}"
               }
             ],
        -    "action": "update_id",
        -    "state_only": true,
        +    "action": "recreate",
             "new_state": {
               "value": {
                 "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        @@ -108,8 +108,8 @@
             },
             "changes": {
               "catalog_name": {
        -        "action": "update_id",
        -        "reason": "parent_renamed",
        +        "action": "recreate",
        +        "reason": "id_field",
                 "old": "test_catalog_[UNIQUE_NAME]",
                 "new": "test_catalog_renamed_[UNIQUE_NAME]",
                 "remote": "test_catalog_[UNIQUE_NAME]"
        @@ -224,9 +224,10 @@
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        +Recreated registered_models.model1
         Updated catalogs.catalog1
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 3 unchanged
        +Resources: 1 created, 1 changed, 1 deleted, 2 unchanged
         
         >>> print_requests.py //unity-catalog
         {
        @@ -238,6 +237,19 @@
             "new_name": "test_catalog_renamed_[UNIQUE_NAME]"
           }
         }
        +{
        +  "method": "DELETE",
        +  "path": "/api/2.1/unity-catalog/models/test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel"
        +}
        +{
        +  "method": "POST",
        +  "path": "/api/2.1/unity-catalog/models",
        +  "body": {
        +    "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        +    "name": "mymodel",
        +    "schema_name": "myschema"
        +  }
        +}
         
         === The old catalog is gone and the schema, the volume and the model are under the new one, not recreated
         old catalog is gone
        @@ -260,7 +272,7 @@
         {
           "full_name": "test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel",
           "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        -  "created_at": [MODEL_CREATED_AT]
        +  "created_at": [UNIX_TIME_MILLIS]
         }
         
         === The state tracks the new paths
        
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/volumes/test_catalog_renamed_vijrmjsq5rc7bf3phcqxeprdu4.myschema.myvolume"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/test_catalog_renamed_vijrmjsq5rc7bf3phcqxeprdu4.myschema.mymodel"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/test_catalog_renamed_vijrmjsq5rc7bf3phcqxeprdu4.myschema",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/catalogs/test_catalog_renamed_vijrmjsq5rc7bf3phcqxeprdu4",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/catalogs/rename/output.txt
        +++ /tmp/TestAcceptbundleresourcescatalogsrenameDMS=trueREADPLAN=1351811990/002/output.txt
        @@ -79,6 +79,7 @@
             }
           },
           "resources.registered_models.model1": {
        +    "id": "test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel",
             "depends_on": [
               {
                 "node": "resources.catalogs.catalog1",
        @@ -89,8 +90,7 @@
                 "label": "${resources.schemas.schema1.name}"
               }
             ],
        -    "action": "update_id",
        -    "state_only": true,
        +    "action": "recreate",
             "new_state": {
               "value": {
                 "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        @@ -108,8 +108,8 @@
             },
             "changes": {
               "catalog_name": {
        -        "action": "update_id",
        -        "reason": "parent_renamed",
        +        "action": "recreate",
        +        "reason": "id_field",
                 "old": "test_catalog_[UNIQUE_NAME]",
                 "new": "test_catalog_renamed_[UNIQUE_NAME]",
                 "remote": "test_catalog_[UNIQUE_NAME]"
        @@ -224,9 +224,10 @@
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        +Recreated registered_models.model1
         Updated catalogs.catalog1
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 3 unchanged
        +Resources: 1 created, 1 changed, 1 deleted, 2 unchanged
         
         >>> print_requests.py //unity-catalog
         {
        @@ -238,6 +237,19 @@
             "new_name": "test_catalog_renamed_[UNIQUE_NAME]"
           }
         }
        +{
        +  "method": "DELETE",
        +  "path": "/api/2.1/unity-catalog/models/test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel"
        +}
        +{
        +  "method": "POST",
        +  "path": "/api/2.1/unity-catalog/models",
        +  "body": {
        +    "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        +    "name": "mymodel",
        +    "schema_name": "myschema"
        +  }
        +}
         
         === The old catalog is gone and the schema, the volume and the model are under the new one, not recreated
         old catalog is gone
        @@ -260,7 +272,7 @@
         {
           "full_name": "test_catalog_renamed_[UNIQUE_NAME].myschema.mymodel",
           "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        -  "created_at": [MODEL_CREATED_AT]
        +  "created_at": [UNIX_TIME_MILLIS]
         }
         
         === The state tracks the new paths
        
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/volumes/test_catalog_renamed_p6uwf6tvvnar5a7nzxyts7gp6e.myschema.myvolume"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/test_catalog_renamed_p6uwf6tvvnar5a7nzxyts7gp6e.myschema.mymodel"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/test_catalog_renamed_p6uwf6tvvnar5a7nzxyts7gp6e.myschema",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/catalogs/test_catalog_renamed_p6uwf6tvvnar5a7nzxyts7gp6e",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
TestAccept/bundle/resources/grants/registered_model_change_name/DMS=: branch ✅ | main (c450460) ❌ | latest (v1.28.0) ❌

main (c450460):

acceptance_test.go:1402: Diff:
        --- bundle/resources/grants/registered_model_change_name/output.txt
        +++ /tmp/TestAcceptbundleresourcesgrantsregistered_model_change_name846587647/002/output.txt
        @@ -67,19 +67,22 @@
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        -Updated registered_models.model1
        +Recreated registered_models.model1
         Updated registered_models.model1.grants
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 2 changed, 0 deleted, 1 unchanged
        +Resources: 1 created, 1 changed, 1 deleted, 1 unchanged
         
         >>> print_requests.py //unity-catalog
         {
        -  "method": "PATCH",
        -  "path": "/api/2.1/unity-catalog/models/main.test-schema-[UNIQUE_NAME].mymodel",
        +  "method": "DELETE",
        +  "path": "/api/2.1/unity-catalog/models/main.test-schema-[UNIQUE_NAME].mymodel"
        +}
        +{
        +  "method": "POST",
        +  "path": "/api/2.1/unity-catalog/models",
           "body": {
             "catalog_name": "main",
        -    "comment": "",
        -    "new_name": "mymodel_renamed",
        +    "name": "mymodel_renamed",
             "schema_name": "test-schema-[UNIQUE_NAME]"
           }
         }
        
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/main.test-schema-mwekno6eazclfj2ecw4roo7x2a.mymodel_renamed"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-mwekno6eazclfj2ecw4roo7x2a",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/grants/registered_model_change_name/output.txt
        +++ /tmp/TestAcceptbundleresourcesgrantsregistered_model_change_name1020221729/002/output.txt
        @@ -67,19 +67,22 @@
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        -Updated registered_models.model1
        +Recreated registered_models.model1
         Updated registered_models.model1.grants
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 2 changed, 0 deleted, 1 unchanged
        +Resources: 1 created, 1 changed, 1 deleted, 1 unchanged
         
         >>> print_requests.py //unity-catalog
         {
        -  "method": "PATCH",
        -  "path": "/api/2.1/unity-catalog/models/main.test-schema-[UNIQUE_NAME].mymodel",
        +  "method": "DELETE",
        +  "path": "/api/2.1/unity-catalog/models/main.test-schema-[UNIQUE_NAME].mymodel"
        +}
        +{
        +  "method": "POST",
        +  "path": "/api/2.1/unity-catalog/models",
           "body": {
             "catalog_name": "main",
        -    "comment": "",
        -    "new_name": "mymodel_renamed",
        +    "name": "mymodel_renamed",
             "schema_name": "test-schema-[UNIQUE_NAME]"
           }
         }
        
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/main.test-schema-26dhlixyrjbc7lvmh65crifk2q.mymodel_renamed"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-26dhlixyrjbc7lvmh65crifk2q",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
TestAccept/bundle/resources/grants/registered_model_change_name/DMS=true: branch ✅ | main (c450460) ❌ | latest (v1.28.0) ❌

main (c450460):

acceptance_test.go:1402: Diff:
        --- bundle/resources/grants/registered_model_change_name/output.txt
        +++ /tmp/TestAcceptbundleresourcesgrantsregistered_model_change_name1053803316/002/output.txt
        @@ -67,19 +67,22 @@
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        -Updated registered_models.model1
        +Recreated registered_models.model1
         Updated registered_models.model1.grants
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 2 changed, 0 deleted, 1 unchanged
        +Resources: 1 created, 1 changed, 1 deleted, 1 unchanged
         
         >>> print_requests.py //unity-catalog
         {
        -  "method": "PATCH",
        -  "path": "/api/2.1/unity-catalog/models/main.test-schema-[UNIQUE_NAME].mymodel",
        +  "method": "DELETE",
        +  "path": "/api/2.1/unity-catalog/models/main.test-schema-[UNIQUE_NAME].mymodel"
        +}
        +{
        +  "method": "POST",
        +  "path": "/api/2.1/unity-catalog/models",
           "body": {
             "catalog_name": "main",
        -    "comment": "",
        -    "new_name": "mymodel_renamed",
        +    "name": "mymodel_renamed",
             "schema_name": "test-schema-[UNIQUE_NAME]"
           }
         }
        
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/main.test-schema-ss24lnf3orfkxkx7mntntbvm3q.mymodel_renamed"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-ss24lnf3orfkxkx7mntntbvm3q",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/grants/registered_model_change_name/output.txt
        +++ /tmp/TestAcceptbundleresourcesgrantsregistered_model_change_name1815963771/002/output.txt
        @@ -67,19 +67,22 @@
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        -Updated registered_models.model1
        +Recreated registered_models.model1
         Updated registered_models.model1.grants
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 2 changed, 0 deleted, 1 unchanged
        +Resources: 1 created, 1 changed, 1 deleted, 1 unchanged
         
         >>> print_requests.py //unity-catalog
         {
        -  "method": "PATCH",
        -  "path": "/api/2.1/unity-catalog/models/main.test-schema-[UNIQUE_NAME].mymodel",
        +  "method": "DELETE",
        +  "path": "/api/2.1/unity-catalog/models/main.test-schema-[UNIQUE_NAME].mymodel"
        +}
        +{
        +  "method": "POST",
        +  "path": "/api/2.1/unity-catalog/models",
           "body": {
             "catalog_name": "main",
        -    "comment": "",
        -    "new_name": "mymodel_renamed",
        +    "name": "mymodel_renamed",
             "schema_name": "test-schema-[UNIQUE_NAME]"
           }
         }
        
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/main.test-schema-cfhrhocurfe4znptuumq5nquce.mymodel_renamed"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-cfhrhocurfe4znptuumq5nquce",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
TestAccept/bundle/resources/registered_models/basic/DMS=: branch ✅ | main (c450460) ❌ | latest (v1.28.0) ❌

main (c450460):

acceptance_test.go:1402: Diff:
        --- bundle/resources/registered_models/basic/output.txt
        +++ /tmp/TestAcceptbundleresourcesregistered_modelsbasicDMS=636536531/002/output.txt
        @@ -64,15 +64,15 @@
         === update the name, this renames the model in place
         
         >>> [CLI] bundle plan
        -update registered_models.my_registered_model
        +recreate registered_models.my_registered_model
         
        -Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
        +Plan: 1 to add, 0 to change, 1 to delete, 0 unchanged
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-registered-models-basic-[UNIQUE_NAME]/default/files...
        -Updated registered_models.my_registered_model
        +Recreated registered_models.my_registered_model
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 0 unchanged
        +Resources: 1 created, 0 changed, 1 deleted, 0 unchanged
         
         >>> [CLI] registered-models get main.default.my-registered-model-updated-[UNIQUE_NAME]
         {

latest (v1.28.0): same output as main (c450460)

TestAccept/bundle/resources/registered_models/basic/DMS=true: branch ✅ | main (c450460) ❌ | latest (v1.28.0) ❌

main (c450460):

acceptance_test.go:1402: Diff:
        --- bundle/resources/registered_models/basic/output.txt
        +++ /tmp/TestAcceptbundleresourcesregistered_modelsbasicDMS=true3154413889/002/output.txt
        @@ -64,15 +64,15 @@
         === update the name, this renames the model in place
         
         >>> [CLI] bundle plan
        -update registered_models.my_registered_model
        +recreate registered_models.my_registered_model
         
        -Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
        +Plan: 1 to add, 0 to change, 1 to delete, 0 unchanged
         
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-registered-models-basic-[UNIQUE_NAME]/default/files...
        -Updated registered_models.my_registered_model
        +Recreated registered_models.my_registered_model
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 0 unchanged
        +Resources: 1 created, 0 changed, 1 deleted, 0 unchanged
         
         >>> [CLI] registered-models get main.default.my-registered-model-updated-[UNIQUE_NAME]
         {

latest (v1.28.0): same output as main (c450460)

TestAccept/bundle/resources/registered_models/move_from_renamed_schema/DMS=/READPLAN=: branch ✅ | main (c450460) ❌ | latest (v1.28.0) ❌

main (c450460):

acceptance_test.go:1402: Diff:
        --- bundle/resources/registered_models/move_from_renamed_schema/output.txt
        +++ /tmp/TestAcceptbundleresourcesregistered_modelsmove_from_renamed_3906881008/002/output.txt
        @@ -63,7 +63,7 @@
               },
               "schema_name": {
                 "action": "recreate",
        -        "reason": "parent",
        +        "reason": "id_field",
                 "old": "test-schema1-[UNIQUE_NAME]",
                 "new": "test-schema2-[UNIQUE_NAME]",
                 "remote": "test-schema1-[UNIQUE_NAME]"
        
    acceptance_test.go:1180: 
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test-schema1-dq5d4dkowfeghgzrsevzxuaev4"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test-schema2-dq5d4dkowfeghgzrsevzxuaev4"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/models",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "mymodel",
        LOG.deploy_requests:     "schema_name": "test-schema1-dq5d4dkowfeghgzrsevzxuaev4"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/main.test-schema2-dq5d4dkowfeghgzrsevzxuaev4.mymodel"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema2-dq5d4dkowfeghgzrsevzxuaev4",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema1-renamed-dq5d4dkowfeghgzrsevzxuaev4",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/registered_models/move_from_renamed_schema/output.txt
        +++ /tmp/TestAcceptbundleresourcesregistered_modelsmove_from_renamed_2769823128/002/output.txt
        @@ -63,7 +63,7 @@
               },
               "schema_name": {
                 "action": "recreate",
        -        "reason": "parent",
        +        "reason": "id_field",
                 "old": "test-schema1-[UNIQUE_NAME]",
                 "new": "test-schema2-[UNIQUE_NAME]",
                 "remote": "test-schema1-[UNIQUE_NAME]"
        
    acceptance_test.go:1180: 
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test-schema1-ljhtn62inrggfkxfa6fgwdk2vu"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test-schema2-ljhtn62inrggfkxfa6fgwdk2vu"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/models",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "mymodel",
        LOG.deploy_requests:     "schema_name": "test-schema1-ljhtn62inrggfkxfa6fgwdk2vu"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/main.test-schema2-ljhtn62inrggfkxfa6fgwdk2vu.mymodel"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema2-ljhtn62inrggfkxfa6fgwdk2vu",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema1-renamed-ljhtn62inrggfkxfa6fgwdk2vu",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }

33 more failure details omitted, see the full report in the run.

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: 0ce0887

Run: 45447988956

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 327 24 7:12
💚​ aws-windows-latest-4core-16gb 1 329 22 8:49
💚​ azure linux-2core-8gb 1 326 24 9:25
💚​ azure-windows-latest-4core-16gb 1 328 22 10:19
💚​ gcp linux-2core-8gb 1 327 24 9:33
💚​ gcp-windows-latest-4core-16gb 1 329 22 9:54
Test Name aws linux-2core-8gb aws-windows-latest-4core-16gb azure linux-2core-8gb azure-windows-latest-4core-16gb gcp linux-2core-8gb gcp-windows-latest-4core-16gb
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 6 slowest tests (at least 2 minutes):
duration env testname
4:08 gcp linux-2core-8gb TestAccept
3:39 gcp-windows-latest-4core-16gb TestAccept
3:34 azure linux-2core-8gb TestAccept
3:33 azure-windows-latest-4core-16gb TestAccept
3:21 aws linux-2core-8gb TestAccept
3:13 aws-windows-latest-4core-16gb TestAccept

@denik
denik force-pushed the denik/models-rename branch from f364f17 to 18077b3 Compare November 5, 2026 15:30
@denik
denik force-pushed the denik/models-rename branch 7 times, most recently from 64af993 to 7496114 Compare November 9, 2026 13:09
@denik
denik force-pushed the denik/models-rename branch from 7496114 to 132a53d Compare November 9, 2026 14:52
@denik
denik added this pull request to stack #7411 November 9, 2026 14:54
@denik
denik force-pushed the denik/models-rename branch from 132a53d to b5f68ef Compare November 9, 2026 14:59
@github-actions github-actions Bot added the DABs DABs related issues label Nov 9, 2026
@denik
denik force-pushed the denik/models-rename branch 4 times, most recently from b0476cd to 36755c1 Compare November 10, 2026 13:23
@denik
denik force-pushed the denik/models-rename branch 3 times, most recently from a44c3dc to 43d07f6 Compare November 10, 2026 16:06
idelafuente-oc pushed a commit to idelafuente-oc/cli that referenced this pull request Nov 11, 2026
…names (databricks#7408)

## Changes

Make the test server behave like Unity Catalog where the UC rename PRs
depend on it:

- A renamed catalog moves its schemas, volumes, registered models and
secrets. A renamed schema moves its volumes, registered models and
secrets.
- A forced catalog or schema delete also deletes what is in it.
- Creating a catalog under a taken name fails with
`CATALOG_ALREADY_EXISTS`.
- A renamed schema or volume gets a lowercased name. A renamed
registered model updates its `full_name` and keeps its versions, and
setting `name` and `new_name` in one update is rejected.

The `schema-catalog-change` and `registered-model-catalog-change`
migrate scripts created a catalog that their captured replay creates
again; the fake now rejects that, so the scripts no longer create it.

## Tests

New `acceptance/cmd/workspace/uc-renames` (Cloud = true) checks each
behavior with plain CLI calls. It passes locally and on AWS, GCP and
Azure.

Next: databricks#7343 (schema rename) stacks
on this PR, followed by databricks#7379 and
databricks#7381.

This pull request and its description were written by Isaac.

---------

Co-authored-by: Isaac <no-reply@databricks.com>
denik and others added 23 commits November 24, 2026 18:18
Co-authored-by: Isaac <no-reply@databricks.com>
The schema and catalog rename steps are covered by schemas/rename_then_change, schemas/rename_with_model_and_secret, catalogs/rename and registered_models/rename_catalog_and_schema.

Co-authored-by: Isaac <no-reply@databricks.com>
…s UC does

Verified on AWS: 400 RESOURCE_ALREADY_EXISTS "Routine or Model '<name>' already exists".

Co-authored-by: Isaac <no-reply@databricks.com>
…dness)

Co-authored-by: Isaac <no-reply@databricks.com>
…ness)

Co-authored-by: Isaac <no-reply@databricks.com>
…UC does (review F1)

Verified on AWS, Azure and GCP: 400 RESOURCE_ALREADY_EXISTS "Routine or Model '<new_name>' already exists". A missing model on update now gets the same UC error as on get.

Co-authored-by: Isaac <no-reply@databricks.com>
…th (review F1)

Co-authored-by: Isaac <no-reply@databricks.com>
A failed alias sync after the rename left the state at the old name, and the next deploy looked for a model that no longer existed there. Aliases now go first, under the current name.

Co-authored-by: Isaac <no-reply@databricks.com>
… (review F2)

Co-authored-by: Isaac <no-reply@databricks.com>
…dating it there (review S2)

The parent is applied first, so the move has already happened. A failed or interrupted update left the state at the old ID, and a resource with no internal ID (a model, a secret) could not be found at its new one: every later deploy failed with ALREADY_EXISTS. This fixes the parent_rename_interrupted Badness.

Co-authored-by: Isaac <no-reply@databricks.com>
… unrenamed (review R1, F3)

Local only, like the other alias tests: versions are registered through the test server.

Co-authored-by: Isaac <no-reply@databricks.com>
…ded new path (review S2)

Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
…wercase, as in UC

Co-authored-by: Isaac <no-reply@databricks.com>
…iew)

Co-authored-by: Isaac <no-reply@databricks.com>
…loud (review)

Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
…WithID check (review)

table_name is not a parent ID field, so the case was a recreate before the check, and no resource has parent_id_fields without DoUpdateWithID.

Co-authored-by: Isaac <no-reply@databricks.com>
…ID field (review)

Co-authored-by: Isaac <no-reply@databricks.com>
…al ID

A volume or a schema is found at its new ID by the plan (findMoved), as on main; only a model or a secret, which nothing identifies at its new path, needs its moved ID recorded before the update.

Co-authored-by: Isaac <no-reply@databricks.com>
…gain

This reverts 85c4ecb: volumes are back on findMoved.

Co-authored-by: Isaac <no-reply@databricks.com>
@denik
denik force-pushed the denik/models-rename branch from 3b56b9e to c12ab5e Compare November 24, 2026 17:18
Co-authored-by: Isaac <no-reply@databricks.com>
@denik
denik added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 33e83a4 Nov 25, 2026
28 checks passed
@denik
denik deleted the denik/models-rename branch November 25, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DABs DABs related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants