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

Method simplify

datafusion/functions/src/string/concat.rs:293–299  ·  view source on GitHub ↗

Simplify the `concat` function by 1. filtering out all `null` literals 2. concatenating contiguous literal arguments For example: `concat(col(a), 'hello ', 'world', col(b), null)` will be optimized to `concat(col(a), 'hello world', col(b))`

(
        &self,
        args: Vec<Expr>,
        _info: &SimplifyContext,
    )

Source from the content-addressed store, hash-verified

291 /// will be optimized to
292 /// `concat(col(a), 'hello world', col(b))`
293 fn simplify(
294 &self,
295 args: Vec<Expr>,
296 _info: &SimplifyContext,
297 ) -> Result<ExprSimplifyResult> {
298 simplify_concat(args)
299 }
300
301 fn documentation(&self) -> Option<&Documentation> {
302 self.doc()

Callers

nothing calls this directly

Calls 1

simplify_concatFunction · 0.85

Tested by

no test coverage detected