mik-laj edited a comment on pull request #9943:
URL: https://github.com/apache/airflow/pull/9943#issuecomment-670591261


   @kenjihiraoka Parameter ``conn`` in ``DbApiHook`` is set to a default value 
when it really should always be passed. The following change should fix this 
problem.
   ```diff
   --- a/airflow/hooks/dbapi_hook.py
   +++ b/airflow/hooks/dbapi_hook.py
   @@ -307,7 +307,7 @@ class DbApiHook(BaseHook):
            self.log.info("Done loading. Loaded a total of %s rows", i)
   
        @staticmethod
   -    def _serialize_cell(cell: Any, conn: Any = None) -> Any:  # pylint: 
disable=unused-argument
   +    def _serialize_cell(cell, conn):  # pylint: disable=unused-argument
            """
            Returns the SQL literal of the cell as a string.
   ```


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


Reply via email to