|
2 | 2 | >>> [CLI] pipelines deploy |
3 | 3 | Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-run-flags/default/files... |
4 | 4 | Created pipelines.my_pipeline |
5 | | -Files: 2 uploaded, 0 deleted |
| 5 | +Files: 3 uploaded, 0 deleted |
6 | 6 | Resources: 1 created, 0 changed, 0 deleted, 0 unchanged |
7 | 7 | View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?w=[WORKSPACE_ID] |
8 | 8 |
|
@@ -114,3 +114,121 @@ Pipeline configurations for this update: |
114 | 114 | ] |
115 | 115 | } |
116 | 116 | } |
| 117 | + |
| 118 | +=== Running pipeline with a file selector |
| 119 | +>>> [CLI] pipelines run --refresh pipeline_file.py --no-wait |
| 120 | +Recommendation: This command runs the last deployed version of the code |
| 121 | + |
| 122 | +If you've made local changes, run 'databricks pipelines deploy' first to ensure they are included. |
| 123 | + |
| 124 | +Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID] |
| 125 | + |
| 126 | +Update ID: [UUID] |
| 127 | + |
| 128 | +Update for pipeline completed successfully. |
| 129 | + |
| 130 | +Pipeline configurations for this update: |
| 131 | +• All tables are refreshed |
| 132 | + |
| 133 | +>>> print_requests.py //pipelines |
| 134 | +{ |
| 135 | + "method": "POST", |
| 136 | + "path": "/api/2.0/pipelines/[UUID]/updates", |
| 137 | + "body": { |
| 138 | + "refresh_selection_by_path": [ |
| 139 | + "/Workspace/Users/[USERNAME]/.bundle/test-pipeline-run-flags/default/files/pipeline_file.py" |
| 140 | + ] |
| 141 | + } |
| 142 | +} |
| 143 | + |
| 144 | +=== Running pipeline with a full-refresh notebook selector |
| 145 | +>>> [CLI] pipelines run --full-refresh notebook.py --no-wait |
| 146 | +Recommendation: This command runs the last deployed version of the code |
| 147 | + |
| 148 | +If you've made local changes, run 'databricks pipelines deploy' first to ensure they are included. |
| 149 | + |
| 150 | +Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID] |
| 151 | + |
| 152 | +Update ID: [UUID] |
| 153 | + |
| 154 | +Update for pipeline completed successfully. |
| 155 | + |
| 156 | +Pipeline configurations for this update: |
| 157 | +• All tables are refreshed |
| 158 | + |
| 159 | +>>> print_requests.py //pipelines |
| 160 | +{ |
| 161 | + "method": "POST", |
| 162 | + "path": "/api/2.0/pipelines/[UUID]/updates", |
| 163 | + "body": { |
| 164 | + "full_refresh_selection_by_path": [ |
| 165 | + "/Workspace/Users/[USERNAME]/.bundle/test-pipeline-run-flags/default/files/notebook" |
| 166 | + ] |
| 167 | + } |
| 168 | +} |
| 169 | + |
| 170 | +=== Running pipeline with mixed table and source selectors |
| 171 | +>>> [CLI] pipelines run --refresh table1,pipeline_file.py --full-refresh table2,notebook.py --no-wait |
| 172 | +Recommendation: This command runs the last deployed version of the code |
| 173 | + |
| 174 | +If you've made local changes, run 'databricks pipelines deploy' first to ensure they are included. |
| 175 | + |
| 176 | +Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID] |
| 177 | + |
| 178 | +Update ID: [UUID] |
| 179 | + |
| 180 | +Update for pipeline completed successfully. |
| 181 | + |
| 182 | +Pipeline configurations for this update: |
| 183 | +• All tables are refreshed |
| 184 | + |
| 185 | +>>> print_requests.py //pipelines |
| 186 | +{ |
| 187 | + "method": "POST", |
| 188 | + "path": "/api/2.0/pipelines/[UUID]/updates", |
| 189 | + "body": { |
| 190 | + "full_refresh_selection": [ |
| 191 | + "table2" |
| 192 | + ], |
| 193 | + "full_refresh_selection_by_path": [ |
| 194 | + "/Workspace/Users/[USERNAME]/.bundle/test-pipeline-run-flags/default/files/notebook" |
| 195 | + ], |
| 196 | + "refresh_selection": [ |
| 197 | + "table1" |
| 198 | + ], |
| 199 | + "refresh_selection_by_path": [ |
| 200 | + "/Workspace/Users/[USERNAME]/.bundle/test-pipeline-run-flags/default/files/pipeline_file.py" |
| 201 | + ] |
| 202 | + } |
| 203 | +} |
| 204 | + |
| 205 | +=== Rejecting missing and excluded sources |
| 206 | +>>> musterr [CLI] pipelines run --refresh ./missing.sql --no-wait |
| 207 | +Recommendation: This command runs the last deployed version of the code |
| 208 | + |
| 209 | +If you've made local changes, run 'databricks pipelines deploy' first to ensure they are included. |
| 210 | + |
| 211 | +Error: invalid --refresh: source file "./missing.sql" not found; use a table name or an existing source file |
| 212 | + |
| 213 | +>>> musterr [CLI] pipelines run --refresh ./excluded.sql --no-wait |
| 214 | +Recommendation: This command runs the last deployed version of the code |
| 215 | + |
| 216 | +If you've made local changes, run 'databricks pipelines deploy' first to ensure they are included. |
| 217 | + |
| 218 | +Error: invalid --refresh: source file "./excluded.sql" is excluded from bundle sync; include it and run 'databricks pipelines deploy' first |
| 219 | + |
| 220 | +>>> musterr [CLI] pipelines run --refresh pipeline_file.py --full-refresh-all --no-wait |
| 221 | +Recommendation: This command runs the last deployed version of the code |
| 222 | + |
| 223 | +If you've made local changes, run 'databricks pipelines deploy' first to ensure they are included. |
| 224 | + |
| 225 | +Error: cannot use --refresh or --full-refresh together with --full-refresh-all, these flags are mutually exclusive |
| 226 | + |
| 227 | +>>> musterr [CLI] pipelines run --full-refresh ./missing.sql --restart --no-wait |
| 228 | +Recommendation: This command runs the last deployed version of the code |
| 229 | + |
| 230 | +If you've made local changes, run 'databricks pipelines deploy' first to ensure they are included. |
| 231 | + |
| 232 | +Error: invalid --full-refresh: source file "./missing.sql" not found; use a table name or an existing source file |
| 233 | + |
| 234 | +>>> test ! -e [OUTPUT_DIR]/out.requests.txt |
0 commit comments