You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from airflow.providers.postgres.hooks.postgres import PostgresHook
hook = PostgresHook(postgres_conn_id="pg_default")
hook.get_df("select * from test limit 20")
[2025-06-24T10:46:46.435+0200] {base.py:65} INFO - Connection Retrieved 'pg_default'
/home/user/airflowtest/venv/lib/python3.10/site-packages/airflow/providers/common/sql/hooks/sql.py:482
UserWarning: pandas only supports SQLAlchemy connectable (engine/
connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.
Out[43]:
What you think should happen instead
The provider should implement the use of sqlalchemy for get_df type=pandas.
How to reproduce
See description above. Simple call the get_df() in ipython.
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
Activity
boring-cyborg commentedon Jun 24, 2025
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
eladkal commentedon Jun 24, 2025
cc @guan404ming
leftovers of in #49334 ?
guan404ming commentedon Jun 24, 2025
I think this is not related. But I could help take a look about this.
daesung9511 commentedon Jun 24, 2025
Hi! I’m new to the Airflow community and would like to work on this issue.
Is it okay if I take it?
guan404ming commentedon Jun 24, 2025
Sure, go for it and feel free to ask any questions!