MCPcopy Create free account
hub / github.com/PRQL/prql / collect_concat_args

Function collect_concat_args

prqlc/prqlc/src/sql/gen_expr.rs:404–411  ·  view source on GitHub ↗
(expr: &rq::Expr)

Source from the content-addressed store, hash-verified

402}
403
404fn collect_concat_args(expr: &rq::Expr) -> Vec<&rq::Expr> {
405 match &expr.kind {
406 rq::ExprKind::Operator { name, args } if name == "std.concat" => {
407 args.iter().flat_map(collect_concat_args).collect()
408 }
409 _ => vec![expr],
410 }
411}
412
413/// Translate expr into a BETWEEN statement if possible, otherwise returns the expr unchanged.
414fn try_into_between(expr: rq::Expr, ctx: &mut Context) -> Result<Option<sql_ast::Expr>> {

Callers 1

process_concatFunction · 0.85

Calls 2

iterMethod · 0.80
collectMethod · 0.45

Tested by

no test coverage detected