Documentation
¶
Index ¶
- Constants
- func CostOptimizationFeaturesValidator() validator.Set
- func ForceNodeSelectionValidator() validator.Bool
- type UseUnknownWhenCostOptimizationFeaturesChange
- func (m UseUnknownWhenCostOptimizationFeaturesChange) Description(_ context.Context) string
- func (m UseUnknownWhenCostOptimizationFeaturesChange) MarkdownDescription(_ context.Context) string
- func (m UseUnknownWhenCostOptimizationFeaturesChange) PlanModifyBool(ctx context.Context, req planmodifier.BoolRequest, ...)
Constants ¶
const ( CostOptimizationFeatureStateAwareOrchestration = "state_aware_orchestration" CostOptimizationFeatureDbtState = "dbt_state" )
Valid cost_optimization_features values. The dbt Cloud API enum (sinter/common/constants/jobs.py::CostOptimizationFeature) also defines efficient_testing, but it is intentionally not exposed by the provider.
Variables ¶
This section is empty.
Functions ¶
func CostOptimizationFeaturesValidator ¶ added in v1.12.1
CostOptimizationFeaturesValidator returns a validator that ensures cost_optimization_features only contains supported values and that dbt_state, when present, is the only feature in the set.
func ForceNodeSelectionValidator ¶
ForceNodeSelectionValidator returns a validator that ensures force_node_selection is true when dbt_version is not a Fusion release track.
Types ¶
type UseUnknownWhenCostOptimizationFeaturesChange ¶ added in v1.12.9
type UseUnknownWhenCostOptimizationFeaturesChange struct{}
UseUnknownWhenCostOptimizationFeaturesChange is a plan modifier for force_node_selection. The dbt platform API keeps the two fields consistent and gives cost_optimization_features precedence, so adding a feature to a job that had none rewrites force_node_selection to false. Holding the old value in the plan makes that apply fail with "Provider produced inconsistent result after apply", so the value is unknown whenever the feature set changes.
When the feature set is stable, the value in state is kept, which is what UseStateForUnknown did before, so a plan with no change to the features still settles. A value the configuration sets is never touched.
func (UseUnknownWhenCostOptimizationFeaturesChange) Description ¶ added in v1.12.9
func (m UseUnknownWhenCostOptimizationFeaturesChange) Description(_ context.Context) string
func (UseUnknownWhenCostOptimizationFeaturesChange) MarkdownDescription ¶ added in v1.12.9
func (m UseUnknownWhenCostOptimizationFeaturesChange) MarkdownDescription(_ context.Context) string
func (UseUnknownWhenCostOptimizationFeaturesChange) PlanModifyBool ¶ added in v1.12.9
func (m UseUnknownWhenCostOptimizationFeaturesChange) PlanModifyBool( ctx context.Context, req planmodifier.BoolRequest, resp *planmodifier.BoolResponse, )