Skip to main content

Module query_analysis

Module query_analysis 

Source
Expand description

Compact query analysis facts.

This module intentionally builds on the existing parser, scope builder, type annotator, and lineage implementation. It is a convenience API: callers that need the full AST or full lineage graph should continue using those lower level APIs directly.

Structs§

AnalyzeQueryOptions
Options for analyze_query.
ColumnReferenceFact
Compact fact about an upstream column reference.
ProjectionFact
Compact fact about one output projection.
QueryAnalysis
Compact facts about a query’s output shape and data dependencies.
RelationFact
Compact fact about a relation visible in the root scope.
SetOperationBranchFact
Compact facts for one immediate set-operation branch.
SetOperationFact
Compact fact about a set operation.

Enums§

QueryShape
Top-level query shape.
ReferenceConfidence
Confidence level for a compact upstream column reference.
TransformKind
High-level kind of transformation performed by a projection.

Functions§

analyze_query
Analyze a single SELECT or set-operation query.