shner-elmo opened a new issue, #513:
URL: https://github.com/apache/arrow-datafusion-python/issues/513
Hey, I'm trying to port a query from `duckdb` to `datafusion` using the
Python connector, the issue I'm facing, is adding query parameters.
Is there currently a way that I can pass query parameters ?
```py
import datafusion
import pyarrow.dataset as ds
dataset = ds.dataset(...)
ctx = datafusion.SessionContext()
ctx.register_dataset('dataset', dataset)
table = ctx.sql("SELECT * FROM dataset WHERE col BETWEEN ? AND ?",
parameters=[1, 10]).to_arrow_table()
## TypeError: SessionContext.sql() got an unexpected keyword argument
'parameters'
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]