You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "MaksYermak (via GitHub)" <gi...@apache.org> on 2026/01/16 18:35:48 UTC

[I] Airflow Datafusion Hook: Regression in the work of `start_pipeline` method for `DataFusionHook` [airflow]

MaksYermak opened a new issue, #60661:
URL: https://github.com/apache/airflow/issues/60661

   ### Apache Airflow Provider(s)
   
   google
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-google==19.3.0
   
   
   ### Apache Airflow version
   
   2.11.0; 3.x.x
   
   ### Operating System
   
   Ubuntu
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   _No response_
   
   ### What happened
   
   After merging this PR https://github.com/apache/airflow/pull/58698 in the `main` branch the `start_pipeline` method started to fail with this error:
   ```
   [2026-01-15, 00:01:17 UTC] {taskinstance.py:3336} ERROR - Task failed with exception
   Traceback (most recent call last):
     File "/usr/python/lib/python3.11/site-packages/airflow/models/taskinstance.py", line 776, in _execute_task
       result = _execute_callable(context=context, **execute_callable_kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/python/lib/python3.11/site-packages/airflow/models/taskinstance.py", line 742, in _execute_callable
       return ExecutionCallableRunner(
              ^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/python/lib/python3.11/site-packages/airflow/utils/operator_helpers.py", line 252, in run
       return self.func(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/python/lib/python3.11/site-packages/airflow/models/baseoperator.py", line 424, in wrapper
       return func(self, *args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/python/lib/python3.11/site-packages/airflow/providers/google/cloud/operators/datafusion.py", line 800, in execute
       self.pipeline_id = hook.start_pipeline(
                          ^^^^^^^^^^^^^^^^^^^^
     File "/usr/python/lib/python3.11/site-packages/airflow/providers/google/cloud/hooks/datafusion.py", line 488, in start_pipeline
       response_json = json.loads(response.data)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/python/lib/python3.11/json/__init__.py", line 346, in loads
       return _default_decoder.decode(s)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/python/lib/python3.11/json/decoder.py", line 337, in decode
       obj, end = self.raw_decode(s, idx=_w(s, 0).end())
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/python/lib/python3.11/json/decoder.py", line 355, in raw_decode
       raise JSONDecodeError("Expecting value", s, err.value) from None
   json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
   ``` 
   
   ### What you think should happen instead
   
   This PR https://github.com/apache/airflow/pull/58698 brought the breaking changes to the `start_pipeline` method for `DataFusionHook`. This PR was for handling errors, but it broke the `start_pipeline` method and a bunch of DataFusion operators. In my opinion we need to revert this PR for returning to the previous behavior  and think about another solution for handling errors.
   
   ### How to reproduce
   
   Run this DAG https://github.com/apache/airflow/blob/main/providers/google/tests/system/google/cloud/datafusion/example_datafusion.py in Breeze environment or any other Airflow environment. The `start_pipeline_def` task should fail with `json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)` error.
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Datafusion Hook: Regression in the work of `start_pipeline` method for `DataFusionHook` [airflow]

Posted by "suii2210 (via GitHub)" <gi...@apache.org>.
suii2210 commented on issue #60661:
URL: https://github.com/apache/airflow/issues/60661#issuecomment-3761463282

   I’ll work on a fix that preserves the error-handling improvements from #58698
   while restoring backward-compatible behavior for start_pipeline when the API
   returns an empty or non-JSON response. I’ll include a regression test.
   PR coming shortly.
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Datafusion Hook: Regression in the work of `start_pipeline` method for `DataFusionHook` [airflow]

Posted by "jscheffl (via GitHub)" <gi...@apache.org>.
jscheffl closed issue #60661: Airflow Datafusion Hook: Regression in the work of `start_pipeline` method for `DataFusionHook`
URL: https://github.com/apache/airflow/issues/60661


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Datafusion Hook: Regression in the work of `start_pipeline` method for `DataFusionHook` [airflow]

Posted by "chirodip98 (via GitHub)" <gi...@apache.org>.
chirodip98 commented on issue #60661:
URL: https://github.com/apache/airflow/issues/60661#issuecomment-3761354643

   I would like to work and fix this Issue!


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org