alexott commented on issue #27894:
URL: https://github.com/apache/airflow/issues/27894#issuecomment-1326659796

   #27868 works, #27854 unfortunately not - results are double wrapped:
   
   For example for `select * from default.my_***_table, parameters: None` we 
get: `scalar_results=True`, `results=[Row(id=1, v='test 1'), Row(id=2, v='test 
2')]`. And then code:
   
   ```
           if scalar_results:
               list_results: list[Any] = [results]
           else:
               list_results = results
   ```
   
   wraps this list into another list. I think that logic should be changed a 
bit - right now we're collecting results for all SQL statements into a single 
list although they could have different schemas.
   
   Let me debug it and open another PR


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