Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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: 1 addition & 1 deletion .codegen/_openapi_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fc0241ef3fa690fe0d1bd2238dbdb4c4e58a12ab
b73946692eb938a39aa3c6a863873f99eadde611
96,389 changes: 52,289 additions & 44,100 deletions .codegen/cli.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .nextchanges/dependency-updates/bump-sdk-0.175.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump `github.com/databricks/databricks-sdk-go` from v0.171.0 to v0.175.0 ([#6322](https://github.com/databricks/cli/pull/6322)).
1 change: 1 addition & 0 deletions .nextchanges/dependency-updates/bump-tf-1.128.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump Terraform provider from v1.127.0 to v1.128.0 ([#6323](https://github.com/databricks/cli/pull/6323)).
1 change: 1 addition & 0 deletions acceptance/bundle/migrate/basic/out.original_state.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
"timeout_seconds": 0,
"timeouts": null,
"trigger": [],
"triggers": [],
"url": "[DATABRICKS_URL]/#job/[NUMID]",
"usage_policy_id": null,
"webhook_notifications": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@
"table_update": []
}
],
"triggers": [],
"url": "[DATABRICKS_URL]/#job/[NUMID]",
"usage_policy_id": null,
"webhook_notifications": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
"timeout_seconds": 0,
"timeouts": null,
"trigger": [],
"triggers": [],
"url": "[DATABRICKS_URL]/#job/[NUMID]",
"usage_policy_id": null,
"webhook_notifications": [
Expand Down
51 changes: 50 additions & 1 deletion acceptance/bundle/refschema/out.fields.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ resources.apps.*.active_deployment.git_source *apps.GitSource ALL
resources.apps.*.active_deployment.git_source.branch string ALL
resources.apps.*.active_deployment.git_source.commit string ALL
resources.apps.*.active_deployment.git_source.git_repository *apps.GitRepository ALL
resources.apps.*.active_deployment.git_source.git_repository.auto_deploy bool ALL
resources.apps.*.active_deployment.git_source.git_repository.caller_credential_id int64 ALL
resources.apps.*.active_deployment.git_source.git_repository.provider string ALL
resources.apps.*.active_deployment.git_source.git_repository.url string ALL
resources.apps.*.active_deployment.git_source.resolved_commit string ALL
Expand Down Expand Up @@ -111,6 +113,17 @@ resources.apps.*.config.env[*].value string ALL
resources.apps.*.config.env[*].value_from string ALL
resources.apps.*.create_time string ALL
resources.apps.*.creator string ALL
resources.apps.*.default_git_source *apps.GitSource ALL
resources.apps.*.default_git_source.branch string ALL
resources.apps.*.default_git_source.commit string ALL
resources.apps.*.default_git_source.git_repository *apps.GitRepository ALL
resources.apps.*.default_git_source.git_repository.auto_deploy bool ALL
resources.apps.*.default_git_source.git_repository.caller_credential_id int64 ALL
resources.apps.*.default_git_source.git_repository.provider string ALL
resources.apps.*.default_git_source.git_repository.url string ALL
resources.apps.*.default_git_source.resolved_commit string ALL
resources.apps.*.default_git_source.source_code_path string ALL
resources.apps.*.default_git_source.tag string ALL
resources.apps.*.default_source_code_path string ALL
resources.apps.*.description string ALL
resources.apps.*.effective_budget_policy_id string ALL
Expand All @@ -119,12 +132,16 @@ resources.apps.*.effective_user_api_scopes []string ALL
resources.apps.*.effective_user_api_scopes[*] string ALL
resources.apps.*.forward_user_access_token bool ALL
resources.apps.*.git_repository *apps.GitRepository ALL
resources.apps.*.git_repository.auto_deploy bool ALL
resources.apps.*.git_repository.caller_credential_id int64 ALL
resources.apps.*.git_repository.provider string ALL
resources.apps.*.git_repository.url string ALL
resources.apps.*.git_source *apps.GitSource ALL
resources.apps.*.git_source.branch string ALL
resources.apps.*.git_source.commit string ALL
resources.apps.*.git_source.git_repository *apps.GitRepository ALL
resources.apps.*.git_source.git_repository.auto_deploy bool ALL
resources.apps.*.git_source.git_repository.caller_credential_id int64 ALL
resources.apps.*.git_source.git_repository.provider string ALL
resources.apps.*.git_source.git_repository.url string ALL
resources.apps.*.git_source.resolved_commit string ALL
Expand Down Expand Up @@ -157,6 +174,8 @@ resources.apps.*.pending_deployment.git_source *apps.GitSource ALL
resources.apps.*.pending_deployment.git_source.branch string ALL
resources.apps.*.pending_deployment.git_source.commit string ALL
resources.apps.*.pending_deployment.git_source.git_repository *apps.GitRepository ALL
resources.apps.*.pending_deployment.git_source.git_repository.auto_deploy bool ALL
resources.apps.*.pending_deployment.git_source.git_repository.caller_credential_id int64 ALL
resources.apps.*.pending_deployment.git_source.git_repository.provider string ALL
resources.apps.*.pending_deployment.git_source.git_repository.url string ALL
resources.apps.*.pending_deployment.git_source.resolved_commit string ALL
Expand Down Expand Up @@ -958,7 +977,7 @@ resources.jobs.*.id string INPUT
resources.jobs.*.job_clusters []jobs.JobCluster ALL
resources.jobs.*.job_clusters[*] jobs.JobCluster ALL
resources.jobs.*.job_clusters[*].job_cluster_key string ALL
resources.jobs.*.job_clusters[*].new_cluster compute.ClusterSpec ALL
resources.jobs.*.job_clusters[*].new_cluster *compute.ClusterSpec ALL
resources.jobs.*.job_clusters[*].new_cluster.apply_policy_default_values bool ALL
resources.jobs.*.job_clusters[*].new_cluster.autoscale *compute.AutoScale ALL
resources.jobs.*.job_clusters[*].new_cluster.autoscale.max_workers int ALL
Expand Down Expand Up @@ -2430,6 +2449,8 @@ resources.model_serving_endpoints.*.endpoint_details.tags[*].key string REMOTE
resources.model_serving_endpoints.*.endpoint_details.tags[*].value string REMOTE
resources.model_serving_endpoints.*.endpoint_details.task string REMOTE
resources.model_serving_endpoints.*.endpoint_details.telemetry_config *serving.TelemetryConfig REMOTE
resources.model_serving_endpoints.*.endpoint_details.telemetry_config.enabled_telemetry_features []serving.TelemetryFeature REMOTE
resources.model_serving_endpoints.*.endpoint_details.telemetry_config.enabled_telemetry_features[*] serving.TelemetryFeature REMOTE
resources.model_serving_endpoints.*.endpoint_details.telemetry_config.inference_table_config *serving.TelemetryInferenceTableConfig REMOTE
resources.model_serving_endpoints.*.endpoint_details.telemetry_config.inference_table_config.name string REMOTE
resources.model_serving_endpoints.*.endpoint_details.telemetry_config.inference_table_config.sampling_fraction float64 REMOTE
Expand All @@ -2456,6 +2477,8 @@ resources.model_serving_endpoints.*.tags[*] serving.EndpointTag ALL
resources.model_serving_endpoints.*.tags[*].key string ALL
resources.model_serving_endpoints.*.tags[*].value string ALL
resources.model_serving_endpoints.*.telemetry_config *serving.TelemetryConfig ALL
resources.model_serving_endpoints.*.telemetry_config.enabled_telemetry_features []serving.TelemetryFeature ALL
resources.model_serving_endpoints.*.telemetry_config.enabled_telemetry_features[*] serving.TelemetryFeature ALL
resources.model_serving_endpoints.*.telemetry_config.inference_table_config *serving.TelemetryInferenceTableConfig ALL
resources.model_serving_endpoints.*.telemetry_config.inference_table_config.name string ALL
resources.model_serving_endpoints.*.telemetry_config.inference_table_config.sampling_fraction float64 ALL
Expand Down Expand Up @@ -2619,6 +2642,7 @@ resources.pipelines.*.dry_run bool ALL
resources.pipelines.*.edition string ALL
resources.pipelines.*.effective_budget_policy_id string REMOTE
resources.pipelines.*.effective_publishing_mode pipelines.PublishingMode REMOTE
resources.pipelines.*.effective_serverless_compute_id string REMOTE
resources.pipelines.*.environment *pipelines.PipelinesEnvironment ALL
resources.pipelines.*.environment.dependencies []string ALL
resources.pipelines.*.environment.dependencies[*] string ALL
Expand Down Expand Up @@ -2769,6 +2793,18 @@ resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.k
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.kafka_options.value_transformer.json_options.schema_file_path string ALL
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.kafka_options.value_transformer.json_options.schema_hints string ALL
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.kafka_options.value_transformer.output_column string ALL
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.linkedin_ads_options *pipelines.LinkedInAdsOptions ALL
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.linkedin_ads_options.custom_report_options *pipelines.LinkedInAdsOptionsLinkedInAdsCustomReportOptions ALL
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.linkedin_ads_options.custom_report_options.entity_granularity []pipelines.LinkedInAdsOptionsLinkedInAdsCustomReportOptionsLinkedInAdsEntityGranularity ALL
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.linkedin_ads_options.custom_report_options.entity_granularity[*] pipelines.LinkedInAdsOptionsLinkedInAdsCustomReportOptionsLinkedInAdsEntityGranularity ALL
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.linkedin_ads_options.custom_report_options.finder pipelines.LinkedInAdsOptionsLinkedInAdsCustomReportOptionsLinkedInAdsFinder ALL
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.linkedin_ads_options.custom_report_options.metrics []string ALL
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.linkedin_ads_options.custom_report_options.metrics[*] string ALL
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.linkedin_ads_options.custom_report_options.time_granularity pipelines.LinkedInAdsOptionsLinkedInAdsCustomReportOptionsLinkedInAdsTimeGranularity ALL
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.linkedin_ads_options.lookback_window_days int ALL
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.linkedin_ads_options.sync_start_date string ALL
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.marketo_options *pipelines.MarketoOptions ALL
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.marketo_options.sync_start_date string ALL
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.meta_ads_options *pipelines.MetaMarketingOptions ALL
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.meta_ads_options.action_attribution_windows []string ALL
resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.meta_ads_options.action_attribution_windows[*] string ALL
Expand Down Expand Up @@ -2981,6 +3017,18 @@ resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.ka
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.kafka_options.value_transformer.json_options.schema_file_path string ALL
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.kafka_options.value_transformer.json_options.schema_hints string ALL
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.kafka_options.value_transformer.output_column string ALL
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.linkedin_ads_options *pipelines.LinkedInAdsOptions ALL
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.linkedin_ads_options.custom_report_options *pipelines.LinkedInAdsOptionsLinkedInAdsCustomReportOptions ALL
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.linkedin_ads_options.custom_report_options.entity_granularity []pipelines.LinkedInAdsOptionsLinkedInAdsCustomReportOptionsLinkedInAdsEntityGranularity ALL
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.linkedin_ads_options.custom_report_options.entity_granularity[*] pipelines.LinkedInAdsOptionsLinkedInAdsCustomReportOptionsLinkedInAdsEntityGranularity ALL
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.linkedin_ads_options.custom_report_options.finder pipelines.LinkedInAdsOptionsLinkedInAdsCustomReportOptionsLinkedInAdsFinder ALL
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.linkedin_ads_options.custom_report_options.metrics []string ALL
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.linkedin_ads_options.custom_report_options.metrics[*] string ALL
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.linkedin_ads_options.custom_report_options.time_granularity pipelines.LinkedInAdsOptionsLinkedInAdsCustomReportOptionsLinkedInAdsTimeGranularity ALL
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.linkedin_ads_options.lookback_window_days int ALL
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.linkedin_ads_options.sync_start_date string ALL
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.marketo_options *pipelines.MarketoOptions ALL
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.marketo_options.sync_start_date string ALL
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.meta_ads_options *pipelines.MetaMarketingOptions ALL
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.meta_ads_options.action_attribution_windows []string ALL
resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.meta_ads_options.action_attribution_windows[*] string ALL
Expand Down Expand Up @@ -3457,6 +3505,7 @@ resources.postgres_synced_tables.*.modified_status string INPUT
resources.postgres_synced_tables.*.name string REMOTE
resources.postgres_synced_tables.*.new_pipeline_spec *postgres.NewPipelineSpec ALL
resources.postgres_synced_tables.*.new_pipeline_spec.budget_policy_id string ALL
resources.postgres_synced_tables.*.new_pipeline_spec.pipeline_channel postgres.NewPipelineSpecPipelineChannel ALL
resources.postgres_synced_tables.*.new_pipeline_spec.storage_catalog string ALL
resources.postgres_synced_tables.*.new_pipeline_spec.storage_schema string ALL
resources.postgres_synced_tables.*.postgres_database string ALL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"table_update": []
}
],
"triggers": [],
"url": "[DATABRICKS_URL]/#job/[FOO_ID]",
"usage_policy_id": null,
"webhook_notifications": [
Expand Down
2 changes: 1 addition & 1 deletion acceptance/cmd/account/account-help/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Billing
budget-policy *Public Preview* A service serves REST API about Budget policies.
budgets *Public Preview* These APIs manage budget configurations for this account.
log-delivery These APIs manage log delivery configurations for this account.
usage-dashboards *Public Preview* These APIs manage usage dashboards for this account.
usage-dashboards These APIs manage usage dashboards for this account.

OAuth
custom-app-integration These APIs enable administrators to manage custom OAuth app integrations, which is required for adding/using Custom OAuth App Integration like Tableau Cloud for Databricks in AWS cloud.
Expand Down
1 change: 1 addition & 0 deletions acceptance/cmd/workspace/apps/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ Flags:
--forward-user-access-token Forward the user's access token to the app.
-h, --help help for update
--json JSON either inline JSON string or @path/to/file.json with request body (default JSON (0 bytes))
--source-code-path string
--space string Name of the space this app belongs to.
--usage-policy-id string

Expand Down
2 changes: 1 addition & 1 deletion acceptance/help/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Tags
workspace-entity-tag-assignments *Beta* Manage tag assignments on workspace-scoped objects.

Postgres
postgres *Beta* Use the Postgres API to create and manage Lakebase Autoscaling Postgres infrastructure, including projects, branches, compute endpoints, and roles.
postgres Use the Postgres API to create and manage Lakebase Autoscaling Postgres infrastructure, including projects, branches, compute endpoints, and roles.

Environments
environments APIs to manage environment resources.
Expand Down
24 changes: 12 additions & 12 deletions bundle/apps/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ func TestAppsValidateSameSourcePath(t *testing.T) {
Apps: map[string]*resources.App{
"app1": {
App: apps.App{
Name: "app1",
Name: "app1",
SourceCodePath: "./app1",
},
SourceCodePath: "./app1",
},
"app2": {
App: apps.App{
Name: "app2",
Name: "app2",
SourceCodePath: "./app1",
},
SourceCodePath: "./app1",
},
},
},
Expand Down Expand Up @@ -188,10 +188,10 @@ func TestAppsValidateResourcePermissionsWarning(t *testing.T) {
tc.resources.Apps = map[string]*resources.App{
"my_app": {
App: apps.App{
Name: "my_app",
Resources: tc.appResources,
Name: "my_app",
Resources: tc.appResources,
SourceCodePath: "./app1",
},
SourceCodePath: "./app1",
},
}

Expand Down Expand Up @@ -237,11 +237,11 @@ func TestAppsValidateBothSourceCodePathAndGitSource(t *testing.T) {
Apps: map[string]*resources.App{
"app1": {
App: apps.App{
Name: "app1",
},
SourceCodePath: "./app1",
GitSource: &apps.GitSource{
Branch: "main",
Name: "app1",
SourceCodePath: "./app1",
GitSource: &apps.GitSource{
Branch: "main",
},
},
},
},
Expand Down
5 changes: 4 additions & 1 deletion bundle/config/mutator/paths/app_paths_visitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/databricks/cli/bundle/config"
"github.com/databricks/cli/bundle/config/resources"
"github.com/databricks/cli/libs/dyn"
"github.com/databricks/databricks-sdk-go/service/apps"
"github.com/stretchr/testify/assert"
)

Expand All @@ -14,7 +15,9 @@ func TestAppPathsVisitor(t *testing.T) {
Resources: config.Resources{
Apps: map[string]*resources.App{
"app0": {
SourceCodePath: "foo",
App: apps.App{
SourceCodePath: "foo",
},
},
},
},
Expand Down
7 changes: 5 additions & 2 deletions bundle/config/mutator/resourcemutator/cluster_fixups.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,11 @@ func prepareJobSettingsForUpdate(js *jobs.JobSettings) {
}
}
for ind := range js.JobClusters {
ModifyRequestOnInstancePool(&js.JobClusters[ind].NewCluster)
initializeNumWorkers(&js.JobClusters[ind].NewCluster)
nc := js.JobClusters[ind].NewCluster
if nc != nil {
ModifyRequestOnInstancePool(nc)
initializeNumWorkers(nc)
}
}
}

Expand Down
10 changes: 5 additions & 5 deletions bundle/config/mutator/resourcemutator/merge_job_clusters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ func TestMergeJobClusters(t *testing.T) {
JobClusters: []jobs.JobCluster{
{
JobClusterKey: "foo",
NewCluster: compute.ClusterSpec{
NewCluster: &compute.ClusterSpec{
SparkVersion: "13.3.x-scala2.12",
NodeTypeId: "i3.xlarge",
NumWorkers: 2,
},
},
{
JobClusterKey: "bar",
NewCluster: compute.ClusterSpec{
NewCluster: &compute.ClusterSpec{
SparkVersion: "10.4.x-scala2.12",
},
},
{
JobClusterKey: "foo",
NewCluster: compute.ClusterSpec{
NewCluster: &compute.ClusterSpec{
NodeTypeId: "i3.2xlarge",
NumWorkers: 4,
},
Expand Down Expand Up @@ -79,14 +79,14 @@ func TestMergeJobClustersWithNilKey(t *testing.T) {
JobSettings: jobs.JobSettings{
JobClusters: []jobs.JobCluster{
{
NewCluster: compute.ClusterSpec{
NewCluster: &compute.ClusterSpec{
SparkVersion: "13.3.x-scala2.12",
NodeTypeId: "i3.xlarge",
NumWorkers: 2,
},
},
{
NewCluster: compute.ClusterSpec{
NewCluster: &compute.ClusterSpec{
NodeTypeId: "i3.2xlarge",
NumWorkers: 4,
},
Expand Down
4 changes: 2 additions & 2 deletions bundle/config/mutator/translate_paths_apps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ func TestTranslatePathsApps_FilePathRelativeSubDirectory(t *testing.T) {
Apps: map[string]*resources.App{
"app": {
App: apps.App{
Name: "My App",
Name: "My App",
SourceCodePath: "../src/app",
},
SourceCodePath: "../src/app",
},
},
},
Expand Down
Loading
Loading