-
Notifications
You must be signed in to change notification settings - Fork 608
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
docs: add raw_sql
docstring to explain usage tradeoffs
#9985
Comments
testing further
I am getting
maybe it will be nice if all the backend return a pyarrow dataset or something like that ? |
Hi @djouallah -- we should have a docstring for Standardizing the output of It's a trade-off, but for |
raw_sql
docstring to explain usage tradeoffs
You might be looking for |
@jcrist I endup creating my own function, it will take a sql query using duckdb dialect and transpile it using sqlglot,
|
If that works for you, that's fine. Note that that's functionally equivalent to: # Execute some duckdb sql on any ibis sql backend, returning a pyarrow table
con.sql(query, dialect="duckdb").to_pyarrow() |
@jcrist this is brilliant !!! |
What happened?
when testing con.raw_sql(' select 42 ;'), it seems to be backend specific
for mssql/duckdb, you need to use con.raw_sql(' select 42 ;').fetchall() which is not compatible with other backend like datafusion/pyspark
What version of ibis are you using?
9.3
What backend(s) are you using, if any?
mssql,datafusion,pyspark
ideally con.raw_sql should return a standard object regardless of the backend
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: