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

Function all_null

prqlc/prqlc/src/sql/pq/preprocess.rs:500–504  ·  view source on GitHub ↗
(exprs: Vec<&Expr>)

Source from the content-addressed store, hash-verified

498}
499
500fn all_null(exprs: Vec<&Expr>) -> bool {
501 exprs
502 .iter()
503 .all(|e| matches!(e.kind, ExprKind::Literal(Literal::Null)))
504}
505
506/// Converts `(a == b) and ((c == d) and (e == f))`
507/// into `([a, c, e], [b, d, f])`

Callers 1

exceptFunction · 0.85

Calls 1

iterMethod · 0.80

Tested by

no test coverage detected