uranusjr commented on code in PR #27108:
URL: https://github.com/apache/airflow/pull/27108#discussion_r1004165706


##########
airflow/providers/dbt/cloud/operators/dbt.py:
##########
@@ -212,7 +214,7 @@ def execute(self, context: Context) -> None:
         response = hook.get_job_run_artifact(
             run_id=self.run_id, path=self.path, account_id=self.account_id, 
step=self.step
         )
-
+        Path(self.output_file_name).parent.mkdir(parents=True, exist_ok=True)

Review Comment:
   If we’re using pathlib, it’d be a good idea to also rewrite the code below 
to reuse the same Path object instead of throwing it away.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to