JCoder01 opened a new issue #9957:
URL: https://github.com/apache/airflow/issues/9957


   
   **Apache Airflow version**:1.10.10
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**:
   - **OS** (e.g. from /etc/os-release):
   - **Kernel** (e.g. `uname -a`):
   - **Install tools**:
   - **Others**:
   
   **What happened**:
   
   passing a list to `dbapi_hook.get_records` fails
   `TypeError: argument 1 must be a string or unicode object: got list instead`
   
   **What you expected to happen**:
   
   return list of query results.
   
   **How to reproduce it**:
   ```
   from airflow.hooks.postgres_hook import PostgresHook
   PostgresHook().get_records(['select * from dag_run limit 1', 'select * from 
dag_run limit 1'])
   '''
   
   
   **Anything else we need to know**:
   
   


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