MCPcopy Create free account
hub / github.com/apache/datafusion / placeholder

Function placeholder

datafusion/expr/src/expr_fn.rs:125–130  ·  view source on GitHub ↗

Create placeholder value that will be filled in (such as `$1`) Note the parameter type can be inferred using [`Expr::infer_placeholder_types`] # Example ```rust # use datafusion_expr::{placeholder}; let p = placeholder("$1"); // $1, refers to parameter 1 assert_eq!(p.to_string(), "$1") ```

(id: impl Into<String>)

Source from the content-addressed store, hash-verified

123/// assert_eq!(p.to_string(), "$1")
124/// ```
125pub fn placeholder(id: impl Into<String>) -> Expr {
126 Expr::Placeholder(Placeholder {
127 id: id.into(),
128 field: None,
129 })
130}
131
132/// Create an '*' [`Expr::Wildcard`] expression that matches all columns
133///

Calls 2

PlaceholderClass · 0.85
intoMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…