uranusjr commented on a change in pull request #17329:
URL: https://github.com/apache/airflow/pull/17329#discussion_r702394784



##########
File path: airflow/hooks/dbapi.py
##########
@@ -215,7 +226,7 @@ def run(self, sql, autocommit=False, parameters=None, 
handler=None):
         if handler is None:
             return None
 
-        if scalar:
+        if len(results) == 1:

Review comment:
       I feel instead of checking the length of `results`, we should instead 
check the length of `sql_statements`.
   
   Also, is `scalar` no longer needed?




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