create_standard_pipeline

Function create_standard_pipeline 

Source
pub fn create_standard_pipeline(verbose: bool) -> PreprocessingPipeline
Expand description

Create a standard preprocessing pipeline with all default transformers

The transformers are applied in this order:

  1. ExpressionLifter - Lifts column alias dependencies and window functions
  2. WhereAliasExpander - Expands SELECT aliases in WHERE clauses
  3. GroupByAliasExpander - Expands SELECT aliases in GROUP BY clauses
  4. HavingAliasTransformer - Adds aliases to aggregates and rewrites HAVING
  5. CTEHoister - Hoists nested CTEs to top level
  6. InOperatorLifter - Optimizes large IN expressions

§Arguments

  • verbose - Whether to enable verbose logging

§Example

let mut pipeline = create_standard_pipeline(false);
let transformed = pipeline.process(statement)?;