Commit 5fad697
authored
Fix generated pipeline README to use --refresh instead of --select (#5626)
## Changes
The README generated for pipeline projects (`databricks bundle init
default-python`, `databricks pipelines init`) documented `databricks
bundle run <pipeline> --select <table>` to run a single transformation.
`bundle run` has no `--select` flag, so the command fails with `Error:
unknown flag: --select`. This switches the template to the supported
`--refresh <table>` flag, which maps to `refresh_selection` (update only
the named tables), and regenerates the affected acceptance golden
outputs.
Fixes #5252
## Why
Reported in #5252: the scaffolded README ships a command the CLI
rejects. `--refresh` is the correct flag for running a single
transformation (see `bundle/run/pipeline_options.go`).
## Tests
Docs/template-only change. Regenerated golden outputs via the acceptance
`-update` runs for `pipelines/init`, `pipelines/e2e`, and
`bundle/templates`. Verified no `--select` remains in any generated
README.1 parent 7a8119d commit 5fad697
9 files changed
Lines changed: 9 additions & 8 deletions
File tree
- acceptance
- bundle/templates
- default-python
- classic/output/my_default_python/src/my_default_python_etl
- serverless/output/my_default_python/src/my_default_python_etl
- lakeflow-pipelines
- python/output/my_lakeflow_pipelines/src/my_lakeflow_pipelines_etl
- sql/output/my_lakeflow_pipelines/src/my_lakeflow_pipelines_etl
- pipelines
- e2e/output/lakeflow_project/src/lakeflow_project_etl
- init
- python/output/my_python_project/src/my_python_project_etl
- sql/output/my_sql_project/src/my_sql_project_etl
- libs/template/templates/default/template/{{.project_name}}/src/{{.project_name}}_etl
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
0 commit comments