Skip to content
Merged
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 @@
1603cd4e00e208260dc36be11f5ba9822ff73360
155fbabb3529267ce58c1a37573911f59d90b06c
285 changes: 221 additions & 64 deletions .codegen/cli.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .nextchanges/dependency-updates/go-sdk-v0.190.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Update the Go SDK to [v0.190.0](https://github.com/databricks/databricks-sdk-go/releases/tag/v0.190.0). ([#7155](https://github.com/databricks/cli/pull/7155))
12 changes: 12 additions & 0 deletions acceptance/bundle/refschema/out.fields.txt
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,15 @@ resources.features.*.source.request_source.flat_schema.fields []ml.FieldDefiniti
resources.features.*.source.request_source.flat_schema.fields[*] ml.FieldDefinition ALL
resources.features.*.source.request_source.flat_schema.fields[*].data_type ml.ScalarDataType ALL
resources.features.*.source.request_source.flat_schema.fields[*].name string ALL
resources.features.*.source.sdp_source *ml.SdpSource ALL
resources.features.*.source.sdp_source.dataframe_schema string ALL
resources.features.*.source.sdp_source.filter_condition string ALL
resources.features.*.source.sdp_source.input_tables []string ALL
resources.features.*.source.sdp_source.input_tables[*] string ALL
resources.features.*.source.sdp_source.output_table string ALL
resources.features.*.source.sdp_source.pipeline_id string ALL
resources.features.*.source.sdp_source.pipeline_state ml.SdpSourceState ALL
resources.features.*.source.sdp_source.transformation_sql string ALL
resources.features.*.source.stream_source *ml.StreamSource ALL
resources.features.*.source.stream_source.dataframe_schema string ALL
resources.features.*.source.stream_source.filter_condition string ALL
Expand Down Expand Up @@ -4396,6 +4405,7 @@ resources.sql_warehouses.*.channel.dbsql_version string ALL
resources.sql_warehouses.*.channel.name sql.ChannelName ALL
resources.sql_warehouses.*.cluster_size string ALL
resources.sql_warehouses.*.creator_name string ALL
resources.sql_warehouses.*.customer_version_label string ALL
resources.sql_warehouses.*.enable_photon bool ALL
resources.sql_warehouses.*.enable_serverless_compute bool ALL
resources.sql_warehouses.*.health *sql.EndpointHealth REMOTE
Expand All @@ -4416,6 +4426,7 @@ resources.sql_warehouses.*.lifecycle *resources.LifecycleWithStarted INPUT
resources.sql_warehouses.*.lifecycle resources.Lifecycle INPUT
resources.sql_warehouses.*.lifecycle.prevent_destroy bool INPUT
resources.sql_warehouses.*.lifecycle.started *bool ALL
resources.sql_warehouses.*.max_dbu int ALL
resources.sql_warehouses.*.max_num_clusters int ALL
resources.sql_warehouses.*.min_num_clusters int ALL
resources.sql_warehouses.*.modified_status string INPUT
Expand All @@ -4427,6 +4438,7 @@ resources.sql_warehouses.*.odbc_params.hostname string REMOTE
resources.sql_warehouses.*.odbc_params.path string REMOTE
resources.sql_warehouses.*.odbc_params.port int REMOTE
resources.sql_warehouses.*.odbc_params.protocol string REMOTE
resources.sql_warehouses.*.reyden_cluster_size_multiplier float64 ALL
resources.sql_warehouses.*.spot_instance_policy sql.SpotInstancePolicy ALL
resources.sql_warehouses.*.state sql.State REMOTE
resources.sql_warehouses.*.statement_timeout int ALL
Expand Down
2 changes: 2 additions & 0 deletions bundle/direct/dresources/configs/features.generated.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 38 additions & 32 deletions bundle/direct/dresources/sql_warehouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,25 @@ func (*ResourceSqlWarehouse) PrepareState(input *resources.SqlWarehouse) *SqlWar
// Started is derived from warehouse state so the planner can detect start/stop changes.
func (*ResourceSqlWarehouse) RemapState(warehouse *SqlWarehouseRemote) *SqlWarehouseState {
return &SqlWarehouseState{
AutoStopMins: warehouse.AutoStopMins,
Channel: warehouse.Channel,
ClusterSize: warehouse.ClusterSize,
CreatorName: warehouse.CreatorName,
EnablePhoton: warehouse.EnablePhoton,
EnableServerlessCompute: warehouse.EnableServerlessCompute,
InstanceProfileArn: warehouse.InstanceProfileArn,
MaxNumClusters: warehouse.MaxNumClusters,
MinNumClusters: warehouse.MinNumClusters,
Name: warehouse.Name,
SpotInstancePolicy: warehouse.SpotInstancePolicy,
StatementTimeout: warehouse.StatementTimeout,
Tags: warehouse.Tags,
WarehouseType: sql.CreateWarehouseRequestWarehouseType(warehouse.WarehouseType),
ForceSendFields: utils.FilterFields[sql.CreateWarehouseRequest](warehouse.ForceSendFields),
Lifecycle: warehouse.Lifecycle,
AutoStopMins: warehouse.AutoStopMins,
Channel: warehouse.Channel,
ClusterSize: warehouse.ClusterSize,
CreatorName: warehouse.CreatorName,
CustomerVersionLabel: warehouse.CustomerVersionLabel,
EnablePhoton: warehouse.EnablePhoton,
EnableServerlessCompute: warehouse.EnableServerlessCompute,
InstanceProfileArn: warehouse.InstanceProfileArn,
MaxDbu: warehouse.MaxDbu,
MaxNumClusters: warehouse.MaxNumClusters,
MinNumClusters: warehouse.MinNumClusters,
Name: warehouse.Name,
ReydenClusterSizeMultiplier: warehouse.ReydenClusterSizeMultiplier,
SpotInstancePolicy: warehouse.SpotInstancePolicy,
StatementTimeout: warehouse.StatementTimeout,
Tags: warehouse.Tags,
WarehouseType: sql.CreateWarehouseRequestWarehouseType(warehouse.WarehouseType),
ForceSendFields: utils.FilterFields[sql.CreateWarehouseRequest](warehouse.ForceSendFields),
Lifecycle: warehouse.Lifecycle,
}
}

Expand Down Expand Up @@ -135,22 +138,25 @@ func (r *ResourceSqlWarehouse) DoUpdate(ctx context.Context, id string, config *
edited := hasWarehouseChanges(entry)
if edited {
request := sql.EditWarehouseRequest{
AutoStopMins: config.AutoStopMins,
Channel: config.Channel,
ClusterSize: config.ClusterSize,
CreatorName: config.CreatorName,
EnablePhoton: config.EnablePhoton,
EnableServerlessCompute: config.EnableServerlessCompute,
Id: id,
InstanceProfileArn: config.InstanceProfileArn,
MaxNumClusters: config.MaxNumClusters,
MinNumClusters: config.MinNumClusters,
Name: config.Name,
SpotInstancePolicy: config.SpotInstancePolicy,
StatementTimeout: config.StatementTimeout,
Tags: config.Tags,
WarehouseType: sql.EditWarehouseRequestWarehouseType(config.WarehouseType),
ForceSendFields: utils.FilterFields[sql.EditWarehouseRequest](config.ForceSendFields),
AutoStopMins: config.AutoStopMins,
Channel: config.Channel,
ClusterSize: config.ClusterSize,
CreatorName: config.CreatorName,
CustomerVersionLabel: config.CustomerVersionLabel,
EnablePhoton: config.EnablePhoton,
EnableServerlessCompute: config.EnableServerlessCompute,
Id: id,
InstanceProfileArn: config.InstanceProfileArn,
MaxDbu: config.MaxDbu,
MaxNumClusters: config.MaxNumClusters,
MinNumClusters: config.MinNumClusters,
Name: config.Name,
ReydenClusterSizeMultiplier: config.ReydenClusterSizeMultiplier,
SpotInstancePolicy: config.SpotInstancePolicy,
StatementTimeout: config.StatementTimeout,
Tags: config.Tags,
WarehouseType: sql.EditWarehouseRequestWarehouseType(config.WarehouseType),
ForceSendFields: utils.FilterFields[sql.EditWarehouseRequest](config.ForceSendFields),
}

waiter, err := r.client.Warehouses.Edit(ctx, request)
Expand Down
1 change: 1 addition & 0 deletions bundle/internal/validation/generated/enum_fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading