kazanzhy commented on code in PR #25412:
URL: https://github.com/apache/airflow/pull/25412#discussion_r935788196


##########
airflow/providers/jdbc/operators/jdbc.py:
##########
@@ -57,16 +57,21 @@ def __init__(
         jdbc_conn_id: str = 'jdbc_default',
         autocommit: bool = False,
         parameters: Optional[Union[Iterable, Mapping]] = None,
+        handler: Callable = fetch_all_handler,

Review Comment:
   Yes, `Callable[[Any], Any]` should be enough, because initially, I thought 
about:
   
   ```
   from airflow.typing_compat import Protocol
   
   class Cursor(Protocol):
       description: Optional[Tuple]
       fetchall: Callable[[], List[Tuple]]
   
   handler: Callable[[Cursor], Optional[List[Tuple]]]
   ```
   



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