potiuk commented on code in PR #28744:
URL: https://github.com/apache/airflow/pull/28744#discussion_r1063329030


##########
airflow/providers/exasol/operators/exasol.py:
##########
@@ -17,12 +17,15 @@
 # under the License.
 from __future__ import annotations
 
-import warnings
 from typing import Sequence
 
 from airflow.providers.common.sql.operators.sql import SQLExecuteQueryOperator
 
 
+def exasol_fetch_all_handler(cursor) -> list[tuple] | None:
+    return cursor.fetchall()

Review Comment:
   > I wonder what happens if using SqlSensor with exasol?
   
   This will work fine because sensor uses "get_records" method of the hook and 
does not use handler - and the root cause of the problem was detection of 
whether the resultSet is returned based on presence of the "description" field. 
I am doing it differently now in the "exasol-specific" handler.
   



-- 
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