Skip to content

Commit 7d72111

Browse files
Bundle templates: standardize personal_schemas enum (#4401)
## Changes This PR standardizes the `personal_schemas` enum values across all bundle templates: - All templates now use `"yes"` and `"no, I will customize the schema configuration later in databricks.yml"` - Adds `default: "yes"` where missing - Standardizes description text ## Tests - [x] `make test-update-templates` passes - [x] `make fmt lint` passes --------- Co-authored-by: Claude Opus 4.5 <[email protected]>
1 parent afcb995 commit 7d72111

File tree

17 files changed

+29
-25
lines changed

17 files changed

+29
-25
lines changed

NEXT_CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
### CLI
1010

1111
### Bundles
12+
* Standardize `personal_schemas` enum across bundle templates ([#4401](https://github.com/databricks/cli/pull/4401))
1213
* engine/direct: Fix permanent drift on experiment name field ([#4627](https://github.com/databricks/cli/pull/4627))
1314
* engine/direct: Fix permissions state path to match input config schema ([#4703](https://github.com/databricks/cli/pull/4703))
1415
* Add default project name and success message to default-scala template ([#4661](https://github.com/databricks/cli/pull/4661))

acceptance/bundle/templates/dbt-sql/input.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"project_name": "my_dbt_sql",
33
"http_path": "/sql/2.0/warehouses/f00dcafe",
44
"default_catalog": "main",
5-
"personal_schemas": "yes, use a schema based on the current user name during development"
5+
"personal_schemas": "yes"
66
}

acceptance/bundle/templates/default-scala/input.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"compute_type": "serverless",
44
"artifacts_dest_path": "/Volumes/test-folder",
55
"default_catalog": "main",
6-
"personal_schemas": "yes, use a schema based on the current user name during development"
6+
"personal_schemas": "yes"
77
}

acceptance/bundle/templates/default-sql/input.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"project_name": "my_default_sql",
33
"http_path": "/sql/2.0/warehouses/f00dcafe",
44
"default_catalog": "main",
5-
"personal_schemas": "yes, automatically use a schema based on the current user name during development"
5+
"personal_schemas": "yes"
66
}

acceptance/bundle/templates/telemetry/dbt-sql/input.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"project_name": "my_dbt_sql",
33
"http_path": "/sql/2.0/warehouses/f00dcafe",
44
"default_catalog": "main",
5-
"personal_schemas": "yes, use a schema based on the current user name during development"
5+
"personal_schemas": "yes"
66
}

acceptance/bundle/templates/telemetry/dbt-sql/out.requests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"uploadTime": [UNIX_TIME_MILLIS],
2929
"items": [],
3030
"protoLogs": [
31-
"{\"frontend_log_event_id\":\"[UUID]\",\"entry\":{\"databricks_cli_log\":{\"execution_context\":{\"cmd_exec_id\":\"[CMD-EXEC-ID]\",\"version\":\"[DEV_VERSION]\",\"command\":\"bundle_init\",\"operating_system\":\"[OS]\",\"execution_time_ms\":\"SMALL_INT\",\"exit_code\":0},\"bundle_init_event\":{\"bundle_uuid\":\"[BUNDLE-UUID]\",\"template_name\":\"dbt-sql\",\"template_enum_args\":[{\"key\":\"personal_schemas\",\"value\":\"yes, use a schema based on the current user name during development\"},{\"key\":\"serverless\",\"value\":\"yes\"}]}}}}"
31+
"{\"frontend_log_event_id\":\"[UUID]\",\"entry\":{\"databricks_cli_log\":{\"execution_context\":{\"cmd_exec_id\":\"[CMD-EXEC-ID]\",\"version\":\"[DEV_VERSION]\",\"command\":\"bundle_init\",\"operating_system\":\"[OS]\",\"execution_time_ms\":\"SMALL_INT\",\"exit_code\":0},\"bundle_init_event\":{\"bundle_uuid\":\"[BUNDLE-UUID]\",\"template_name\":\"dbt-sql\",\"template_enum_args\":[{\"key\":\"personal_schemas\",\"value\":\"yes\"},{\"key\":\"serverless\",\"value\":\"yes\"}]}}}}"
3232
]
3333
}
3434
}

acceptance/bundle/templates/telemetry/dbt-sql/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Refer to the README.md file for full "getting started" guide and production setu
2828
"template_enum_args": [
2929
{
3030
"key": "personal_schemas",
31-
"value": "yes, use a schema based on the current user name during development"
31+
"value": "yes"
3232
},
3333
{
3434
"key": "serverless",

acceptance/bundle/templates/telemetry/default-sql/input.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"project_name": "my_default_sql",
33
"http_path": "/sql/2.0/warehouses/f00dcafe",
44
"default_catalog": "main",
5-
"personal_schemas": "yes, automatically use a schema based on the current user name during development"
5+
"personal_schemas": "yes"
66
}

acceptance/bundle/templates/telemetry/default-sql/out.requests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"uploadTime": [UNIX_TIME_MILLIS],
2020
"items": [],
2121
"protoLogs": [
22-
"{\"frontend_log_event_id\":\"[UUID]\",\"entry\":{\"databricks_cli_log\":{\"execution_context\":{\"cmd_exec_id\":\"[CMD-EXEC-ID]\",\"version\":\"[DEV_VERSION]\",\"command\":\"bundle_init\",\"operating_system\":\"[OS]\",\"execution_time_ms\":\"SMALL_INT\",\"exit_code\":0},\"bundle_init_event\":{\"bundle_uuid\":\"[BUNDLE-UUID]\",\"template_name\":\"default-sql\",\"template_enum_args\":[{\"key\":\"personal_schemas\",\"value\":\"yes, automatically use a schema based on the current user name during development\"}]}}}}"
22+
"{\"frontend_log_event_id\":\"[UUID]\",\"entry\":{\"databricks_cli_log\":{\"execution_context\":{\"cmd_exec_id\":\"[CMD-EXEC-ID]\",\"version\":\"[DEV_VERSION]\",\"command\":\"bundle_init\",\"operating_system\":\"[OS]\",\"execution_time_ms\":\"SMALL_INT\",\"exit_code\":0},\"bundle_init_event\":{\"bundle_uuid\":\"[BUNDLE-UUID]\",\"template_name\":\"default-sql\",\"template_enum_args\":[{\"key\":\"personal_schemas\",\"value\":\"yes\"}]}}}}"
2323
]
2424
}
2525
}

acceptance/bundle/templates/telemetry/default-sql/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ See also the documentation at https://docs.databricks.com/dev-tools/bundles/inde
2828
"template_enum_args": [
2929
{
3030
"key": "personal_schemas",
31-
"value": "yes, automatically use a schema based on the current user name during development"
31+
"value": "yes"
3232
}
3333
]
3434
}

0 commit comments

Comments
 (0)