malagoli commented on a change in pull request #7849: [AIRFLOW-7106] Cloud data 
fusion integration - Allow to pass args to start pipeline
URL: https://github.com/apache/airflow/pull/7849#discussion_r398669775
 
 

 ##########
 File path: airflow/providers/google/cloud/hooks/datafusion.py
 ##########
 @@ -397,7 +400,13 @@ def start_pipeline(
             "DataPipelineWorkflow",
             "start",
         )
-        response = self._cdap_request(url=url, method="POST")
+
+        if runtime_args != None:
+            args = ast.literal_eval(runtime_args)
+        else:
+            args = None
+
+        response = self._cdap_request(url=url, method="POST", body=args)
 
 Review comment:
   thanks turbaszek, you are right.
   I've updated from string to dict, updated also tests
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to