alamb commented on issue #4539:
URL: https://github.com/apache/datafusion/issues/4539#issuecomment-2226145983

   > What's the best way to handle `?` placeholder in datafusion? For example, 
`select * from t where a = ?`, it could be converted to a logical plan in 
datafusion, but the plan can't be updated with param values.
   
   I tried this in datafusion CLI and it looks like `?` is created with a 
logical plan with a Placeholder with id `?` 
   
   ```
   > select '1' where 4 = ?;
   This feature is not implemented: Physical plan does not support logical 
expression Placeholder(Placeholder { id: "?", data_type: Some(Int64) })
   ```
   
   So you can probably use 
https://docs.rs/datafusion/latest/datafusion/dataframe/struct.DataFrame.html#method.with_param_values
 and use a ParamValues::Map (key name `"?"`
   
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to