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 ?
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'
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 ?