-
Notifications
You must be signed in to change notification settings - Fork 80
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
Is it possible to pass query parameters? (:param
or ?
)
#513
Comments
Yea, parameterized queries would be awesome, especially syntax like this: ctx.sql(
"select country, count(*) as num_ppl from {person_df} group by country",
person_df=person_df,
).show() |
I don't fully understand what is needed here. Can you not just do
|
@timsaucer - In this example, |
Oh, interesting. As a pure dataframe user, I hadn't understood the request. I appreciate the clarification! |
Parametrized queries are even more important for when you want to do: A year later, I again need to choose a library for reading parquet files, but I had to settle with ducks because data fusion doesn't support this |
I just tried a quick proof of concept. To get this to work, I did need a name for the table. Would the following be an acceptable solution?
|
I think that if we change all of the |
Hey, I'm trying to port a query from
duckdb
todatafusion
using the Python connector, the issue I'm facing, is adding query parameters.Is there currently a way that I can pass query parameters ?
The text was updated successfully, but these errors were encountered: