diff --git a/.nextchanges/air/7827.md b/.nextchanges/air/7827.md new file mode 100644 index 00000000000..24495ed7f81 --- /dev/null +++ b/.nextchanges/air/7827.md @@ -0,0 +1 @@ +* Note in `air run -h config.parameters` that floats such as `2e-5` and `1e6` can load as strings in Python. ([#7827](https://github.com/databricks/cli/pull/7827)) diff --git a/cmd/air/runconfig.go b/cmd/air/runconfig.go index 501f2d3ee9f..f09141d6fbc 100644 --- a/cmd/air/runconfig.go +++ b/cmd/air/runconfig.go @@ -67,7 +67,7 @@ type runConfig struct { MaxRetries *int `yaml:"max_retries" help:"How many times to retry a failed run. Must be >= 0. Defaults to 3 when unset." group:"Execution"` TimeoutMinutes *int `yaml:"timeout_minutes" help:"Wall-clock limit for the run in minutes. Must be >= 1." group:"Execution"` IdempotencyToken *string `yaml:"idempotency_token" help:"Reuse token: a repeat submission with the same token returns the existing run instead of starting another. Max 64 characters." group:"Execution"` - Parameters map[string]any `yaml:"parameters" help:"Free-form values passed through to the workload. Any nested structure is allowed." group:"Workload"` + Parameters map[string]any `yaml:"parameters" help:"Free-form values passed through to the workload. Any nested structure is allowed. Floats such as 2e-5 and 1e6 can load as strings in Python." group:"Workload"` MLflowRunName *string `yaml:"mlflow_run_name" help:"Name for the MLflow run. Max 100 characters, alphanumerics, hyphens, and underscores only." group:"MLflow tracking"` MLflowExperimentDirectory *string `yaml:"mlflow_experiment_directory" help:"Workspace directory holding the MLflow experiment. Must start with /Workspace." group:"MLflow tracking"` MLflowArtifactLocation *string `yaml:"mlflow_artifact_location" help:"DBFS location where MLflow artifacts are written. A /Volumes path is normalized to dbfs:/Volumes/... ." group:"MLflow tracking"`