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

Function col_refs

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

Source from the content-addressed store, hash-verified

530}
531
532fn col_refs(exprs: Vec<&Expr>) -> Vec<CId> {
533 exprs
534 .into_iter()
535 .flat_map(|expr| expr.kind.as_column_ref().cloned())
536 .collect()
537}
538
539/// Pull Compute transforms in front of other transforms if possible.
540/// Position of Compute is important for two reasons:

Callers 1

all_inFunction · 0.85

Calls 2

into_iterMethod · 0.80
collectMethod · 0.45

Tested by

no test coverage detected