You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "dhegberg (via GitHub)" <gi...@apache.org> on 2025/02/10 06:59:27 UTC
Re: [I] Document PREPARE statements [datafusion]
dhegberg commented on issue #13570:
URL: https://github.com/apache/datafusion/issues/13570#issuecomment-2647102910
I've started to put together some basic documentation for prepared statements, but when generating examples I'm struggling to use named parameters.
Using `SessionContext::sql()` for example will hit [this](https://github.com/apache/datafusion/blob/603721d38ef9f187deaf76664e7b1679e44a90cd/datafusion/sql/src/expr/value.rs#L124) validation ensuring a `$1` style placeholder is used rather than `:name`.
Creating a logical plan from the SQL string has a similar issue, preventing the user from later calling `replace_params_with_values`.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org