dstandish commented on code in PR #27966:
URL: https://github.com/apache/airflow/pull/27966#discussion_r1034112520
##########
airflow/providers/common/sql/hooks/sql.py:
##########
@@ -272,33 +273,33 @@ def run(
where each element in the list are results of one of the queries
(typically list of list of rows :D)
For compatibility reasons, the behaviour of the DBAPIHook is somewhat
confusing.
- In cases, when multiple queries are run, the return values will be an
iterable (list) of results
- - one for each query. However, in certain cases, when single query is
run - the results will be just
- the results of that query without wrapping the results in a list.
+ In some cases, when multiple queries are run, the return value will be
an iterable (list) of results
+ -- one for each query. However, in other cases, when single query is
run, the return value will be just
+ the result of that single query without wrapping the results in a list.
Review Comment:
```suggestion
In some cases, when multiple queries are run, the return value will
be an iterable (list) of results
-- one for each query. However, in other cases, when single query is
run, the return value will
be the result of that single query without wrapping the results in a
list.
```
--
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]