alamb commented on issue #7776: URL: https://github.com/apache/arrow-datafusion/issues/7776#issuecomment-1755048691
hi @shner-elmo -- yes you can do this with `PREPARE` statements: Here are some examples: https://github.com/apache/arrow-datafusion/blob/b6f87edbbaaaedd696b2e448fcd7df7ad3cd2c93/datafusion/sqllogictest/test_files/prepare.slt#L18-L20 You can do it via a `DataFrame` like this: https://docs.rs/datafusion/latest/datafusion/dataframe/struct.DataFrame.html#method.with_param_values Something like ```rust let ctx: SessionContext = ...; ctx.sql(""SELECT * FROM table WHERE id = ?") .await? .with_param_values(vec![lit(435)])? .collect() ``` This is something that should be documented. I will try and do so -- 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]
