Skip to content

Conversation

@josh-fell
Copy link
Contributor

Closes: #27107

Currently the DbtCloudGetJobRunArtifactOperator does not support downloading dbt Cloud job run artifacts to non-existent local paths. This means users couldn't specify a dynamic file path to which to download the artifact.

This PR will enhance the DbtCloudGetJobRunArtifactOperator to create these non-existent paths when necessary.

A little bonus of updated test coverage and pushing the task's output_file_name to XCom (which may be useful to then read said artifact).


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@potiuk
Copy link
Member

potiuk commented Jan 21, 2023

Random failures. Nice addition and nice improvements in tests. Merging (Approving and re-running left to Josh to merge as appropriate :) ).

Closes: apache#27107

Currently the DbtCloudGetJobRunArtifactOperator does not support downloading dbt Cloud job run artifacts to non-existent local paths. This means users couldn't specify a dynamic file path to which to download the artifact.

This PR will enhance the DbtCloudGetJobRunArtifactOperator to create these non-existent paths when necessary.
@josh-fell josh-fell force-pushed the dbt-cloud-job-artifact branch from d4fbb3e to dfcf4b9 Compare January 23, 2023 16:31
@josh-fell
Copy link
Contributor Author

Rebased and resolved conflicts.

@josh-fell josh-fell merged commit f805b41 into apache:main Jan 23, 2023
@josh-fell josh-fell deleted the dbt-cloud-job-artifact branch January 23, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dbt cloud download artifact to a path not present fails

2 participants