uranusjr commented on code in PR #56041:
URL: https://github.com/apache/airflow/pull/56041#discussion_r2468276356


##########
providers/common/sql/src/airflow/providers/common/sql/operators/generic_transfer.py:
##########
@@ -156,13 +156,19 @@ def execute(self, context: Context):
                 method_name=self.execute_complete.__name__,
             )
         else:
-            self.log.info("Extracting data from %s", self.source_conn_id)
-            self.log.info("Executing: \n %s", self.sql)
+            if isinstance(self.sql, str):
+                self.sql = [self.sql]
 
-            results = self.source_hook.get_records(self.sql)
+            for sql in self.sql:
+                self.log.info("Extracting data from %s", self.source_conn_id)
+                self.log.info("Executing: \n %s", sql)

Review Comment:
   ```suggestion
               self.log.info("Extracting data from %s", self.source_conn_id)
               for sql in self.sql:
                   self.log.info("Executing: \n %s", sql)
   ```



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