pub fn lineage_with_schema(
column: &str,
sql: &Expression,
schema: Option<&dyn Schema>,
dialect: Option<DialectType>,
trim_selects: bool,
) -> Result<LineageNode>Expand description
Build the lineage graph for a column in a SQL query using optional schema metadata.
When schema is provided, the query is first qualified with
optimizer::qualify_columns, allowing more accurate lineage for unqualified or
ambiguous column references.
§Arguments
column- The column name to trace lineage forsql- The SQL expression (SELECT, UNION, etc.)schema- Optional schema used for qualificationdialect- Optional dialect for qualification and lineage handlingtrim_selects- If true, trim the source SELECT to only include the target column
§Returns
The root lineage node for the specified column