Function datafusion_expr::expr_fn::placeholder

source ·
pub fn placeholder(id: impl Into<String>) -> Expr
Expand description

Create placeholder value that will be filled in (such as $1)

Note the parameter type can be inferred using Expr::infer_placeholder_types

§Example

let p = placeholder("$0"); // $0, refers to parameter 1
assert_eq!(p.to_string(), "$0")