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

Function postprocess

prqlc/prqlc/src/sql/pq/postprocess.rs:21–25  ·  view source on GitHub ↗
(query: SqlQuery, ctx: &mut Context)

Source from the content-addressed store, hash-verified

19type Sorting = Vec<ColumnSort<CId>>;
20
21pub(super) fn postprocess(query: SqlQuery, ctx: &mut Context) -> SqlQuery {
22 let query = infer_sorts(query, ctx);
23
24 assign_names(query, ctx)
25}
26
27/// Pushes sorts down the pipelines and materializes them only where they are needed.
28fn infer_sorts(query: SqlQuery, ctx: &mut Context) -> SqlQuery {

Callers 1

compile_queryFunction · 0.85

Calls 2

infer_sortsFunction · 0.85
assign_namesFunction · 0.85

Tested by

no test coverage detected