Skip to content

Commit beb8f01

Browse files
Give warning when a bundle destroy will delete data (#3346)
## Why This warning is necessary to ensure users understand the full scope of destroying a bundle deployment. ## Tests Updating existing integration tests provides enough coverage.
1 parent 47528cf commit beb8f01

File tree

22 files changed

+171
-20
lines changed

22 files changed

+171
-20
lines changed

acceptance/bundle/deploy/pipeline/allow-duplicate-names/output.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ Deployment complete!
4646
The following resources will be deleted:
4747
delete pipeline pipeline_one
4848

49+
This action will result in the deletion of the following DLT Pipelines along with the
50+
Streaming Tables (STs) and Materialized Views (MVs) managed by them:
51+
delete pipeline pipeline_one
52+
4953
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/acc-bundle-deploy-pipeline-duplicate-names-[UNIQUE_NAME]/default
5054

5155
Deleting files...

acceptance/bundle/deploy/pipeline/auto-approve/output.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ The following resources will be deleted:
5858
delete job foo
5959
delete pipeline bar
6060

61+
This action will result in the deletion of the following DLT Pipelines along with the
62+
Streaming Tables (STs) and Materialized Views (MVs) managed by them:
63+
delete pipeline bar
64+
6165
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]
6266

6367
Deleting files...

acceptance/bundle/deploy/pipeline/recreate/output.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ recreate schemas.bar
3737
=== Try to redeploy the bundle, pointing the DLT pipeline to a different UC catalog
3838
>>> errcode [CLI] bundle deploy --force-lock --var=catalog=another_catalog
3939
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files...
40-
The following UC schemas will be deleted or recreated. Any underlying data may be lost:
40+
41+
This action will result in the deletion or recreation of the following UC schemas. Any underlying data may be lost:
4142
recreate schema bar
4243

4344
This action will result in the deletion or recreation of the following DLT Pipelines along with the
@@ -55,6 +56,13 @@ The following resources will be deleted:
5556
delete pipeline foo
5657
delete schema bar
5758

59+
This action will result in the deletion of the following UC schemas. Any underlying data may be lost:
60+
delete schema bar
61+
62+
This action will result in the deletion of the following DLT Pipelines along with the
63+
Streaming Tables (STs) and Materialized Views (MVs) managed by them:
64+
delete pipeline foo
65+
5866
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]
5967

6068
Deleting files...

acceptance/bundle/deploy/schema/auto-approve/output.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ test-file-[UNIQUE_NAME].txt -> dbfs:/Volumes/main/test-schema-[UNIQUE_NAME]/test
5454
=== Try to redeploy the bundle - should fail without --auto-approve
5555
>>> [CLI] bundle deploy
5656
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files...
57-
The following UC schemas will be deleted or recreated. Any underlying data may be lost:
57+
58+
This action will result in the deletion or recreation of the following UC schemas. Any underlying data may be lost:
5859
delete schema bar
5960

6061
This action will result in the deletion or recreation of the following DLT Pipelines along with the
@@ -71,6 +72,13 @@ The following resources will be deleted:
7172
delete pipeline foo
7273
delete schema bar
7374

75+
This action will result in the deletion of the following UC schemas. Any underlying data may be lost:
76+
delete schema bar
77+
78+
This action will result in the deletion of the following DLT Pipelines along with the
79+
Streaming Tables (STs) and Materialized Views (MVs) managed by them:
80+
delete pipeline foo
81+
7482
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]
7583

7684
Deleting files...

acceptance/bundle/deploy/volume/recreate/output.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ The following resources will be deleted:
6969
delete schema schema2
7070
delete volume foo
7171

72+
This action will result in the deletion of the following UC schemas. Any underlying data may be lost:
73+
delete schema schema1
74+
delete schema schema2
75+
76+
This action will result in the deletion of the following volumes.
77+
For managed volumes, the files stored in the volume are also deleted from your
78+
cloud tenant within 30 days. For external volumes, the metadata about the volume
79+
is removed from the catalog, but the underlying files are not deleted:
80+
delete volume foo
81+
7282
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-uc-volumes-[UNIQUE_NAME]/default
7383

7484
Deleting files...

acceptance/bundle/destroy/all-resources/output.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ The following resources will be deleted:
1010
delete pipeline my_pipeline
1111
delete schema my_schema
1212

13+
This action will result in the deletion of the following UC schemas. Any underlying data may be lost:
14+
delete schema my_schema
15+
16+
This action will result in the deletion of the following DLT Pipelines along with the
17+
Streaming Tables (STs) and Materialized Views (MVs) managed by them:
18+
delete pipeline my_pipeline
19+
1320
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default
1421

1522
Deleting files...

acceptance/bundle/destroy/jobs-and-pipeline/output.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ The following resources will be deleted:
5252
delete job foo
5353
delete pipeline bar
5454

55+
This action will result in the deletion of the following DLT Pipelines along with the
56+
Streaming Tables (STs) and Materialized Views (MVs) managed by them:
57+
delete pipeline bar
58+
5559
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]
5660

5761
Deleting files...

acceptance/bundle/resources/pipelines/recreate/change-catalog/output.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ Exit code (musterr): 1
130130
The following resources will be deleted:
131131
delete pipeline my
132132

133+
This action will result in the deletion of the following DLT Pipelines along with the
134+
Streaming Tables (STs) and Materialized Views (MVs) managed by them:
135+
delete pipeline my
136+
133137
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/acc-[UNIQUE_NAME]/default
134138

135139
Deleting files...

acceptance/bundle/resources/pipelines/recreate/change-ingestion-definition/output.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ Exit code (musterr): 1
146146
The following resources will be deleted:
147147
delete pipeline my
148148

149+
This action will result in the deletion of the following DLT Pipelines along with the
150+
Streaming Tables (STs) and Materialized Views (MVs) managed by them:
151+
delete pipeline my
152+
149153
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/acc-[UNIQUE_NAME]/default
150154

151155
Deleting files...

acceptance/bundle/resources/pipelines/recreate/change-storage/output.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ Exit code (musterr): 1
130130
The following resources will be deleted:
131131
delete pipeline my
132132

133+
This action will result in the deletion of the following DLT Pipelines along with the
134+
Streaming Tables (STs) and Materialized Views (MVs) managed by them:
135+
delete pipeline my
136+
133137
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/acc-[UNIQUE_NAME]/default
134138

135139
Deleting files...

0 commit comments

Comments
 (0)