-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polars read_database with an existing async session object #16616
Comments
theres this #15162 PR but even if i use the engine it still doesnt work |
o right.. need to install nest_asyncio first
|
I'll try and repro this at home and take a look, as I believe this should indeed work (pretty sure I tested with AsyncSession, but seems I missed something, hmm) - thanks for the sample code ;) |
if this works for you im gonna go slit my wrists with a piece of paper. cheers for all the work you put into it already |
Got a fix incoming: "don't go towards the light..." ;) Also, it turns out that there are actually two issues here - one is a bug (for which I'm about to land a fix), but the other is an enhancement. We currently don't support automatically unpacking SQLAlchemy ORM models (eg: the Once the fix lands you can work around that by passing the compiled query to |
Checks
Reproducible example
Log output
Issue description
Very glad that read_database is now able to accept async connections :D
im not sure if this is a bug report or a feature request or a wont fix or something. with the above ive tried passing:
read_database_uri
expects one or more string queries; found <class 'sqlalchemy.sql.selectable.Select'> (duh since docs sayif using a SQLAlchemy connection object this can be a suitable “Selectable”, otherwise it is expected to be a string
)(i also tried session.connection() but then await and async issues)
im relatively sure im just doing something stupid at this point like im supposed to sue a diff read_database or something but its not working :(
thanks for your time whoever is reading this!
Expected behavior
return a dataframe with 2 columns and rows of countries and their codes
Installed versions
The text was updated successfully, but these errors were encountered: