Added new Lakeflow Pipelines support for bundle generate#3568
Added new Lakeflow Pipelines support for bundle generate#3568andrewnester merged 9 commits intomainfrom
bundle generate#3568Conversation
|
| name: lakeflow-pipeline | ||
| libraries: | ||
| - glob: | ||
| include: ../pipeline/transformations/** |
There was a problem hiding this comment.
This might be something for a followup, but pipeline source code should be in the same folder as the pipeline definiton for Lakeflow. So this should always say transformations/**. See also #3558.
There was a problem hiding this comment.
This is configured by use of --config-dir and --source-dir flags in bundle generate command and for this specific test I set them up in such a way that it also tests that all complex relative paths are resolved correctly.
This is not an example of how configuration should look like though
| include: ../pipeline/transformations/** | ||
| - glob: | ||
| include: /Workspace/Users/foo@databricks.com/another/** | ||
| root_path: ../pipeline |
There was a problem hiding this comment.
Similar to the above, the .yml file should be included in the root_path, so this should actually say . or maybe for clarity ".".
| } | ||
|
|
||
| // Making sure the root path is relative to the config directory. | ||
| rel, err := filepath.Rel(configDir, sourceDir) |
There was a problem hiding this comment.
Should we add an test case for this error as well?
## Release v0.270.0 ### Notable Changes * Add 'databricks bundle plan' command. This command shows the deployment plan for the current bundle configuration without making any changes. ([#3530](#3530)) ### Bundles * Add 'databricks bundle plan' command ([#3530](#3530)) * Add new Lakeflow Pipelines support for bundle generate ([#3568](#3568)) * Fix bundle deploy to not update permissions or grants for unbound resources ([#3642](#3642)) * Introduce new bundle variable: `${workspace.current_user.domain_friendly_name}` ([#3623](#3623)) * Improve the output of bundle run when bundle is not deployed ([#3652](#3652))
Changes
Added new Lakeflow Pipelines support for
bundle generateWhy
Now if the pipeline refers to
root_pathwe download the whole content of it and rewrite any relatedlibraries.globpaths pointing to the same remote paths to the local onesTests
Added an acceptance test
Confirmed that they can be deployed here: #3578