Commit ae9b412
authored
Implement synced_database_table in direct deployment (#3525)
## Why
<!-- Why are these changes needed? Provide the context that the reviewer
might be missing.
For example, were there any decisions behind the change that are not
reflected in the code itself? -->
- This change allows to deploy database catalogs when using direct-exp
deployment method
## Tests
<!-- How have you tested the changes? -->
Important notice: destroying a bundle with a synced database table in it
fails when using `direct-exp` method with the following error:
```
Error: cannot delete synced_database_tables.my_synced_table: deleting id=my_catalog_[UNIQUE_NAME].my_database.my_synced_table: Catalog 'my_catalog_[UNIQUE_NAME]' does not exist. (404 CATALOG_DOES_NOT_EXIST)
Endpoint: DELETE [DATABRICKS_URL]/api/2.0/database/synced_tables/my_catalog_[UNIQUE_NAME].my_database.my_synced_table?
HTTP Status: 404 Not Found
API error_code: CATALOG_DOES_NOT_EXIST
API message: Catalog 'my_catalog_[UNIQUE_NAME]' does not exist.
```
`direct-exp` method currently does not support waiting for deletion,
thus the tests for `direct-exp` are currently not enabled
<!-- If your PR needs to be included in the release notes for next
release,
add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->1 parent f09257e commit ae9b412
File tree
4 files changed
+65
-21
lines changed- acceptance/bundle/deploy/lakebase/synced-database-table
- bundle/terranova
- tnresources
4 files changed
+65
-21
lines changedLines changed: 0 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 11 | | |
32 | 12 | | |
33 | 13 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
122 | 127 | | |
123 | 128 | | |
124 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
0 commit comments