extract_column_from_expr

Function extract_column_from_expr 

Source
fn extract_column_from_expr(expr: &Expr) -> Option<Column>
Expand description

Extracts a column reference from an expression, if present.

This function checks if the given expression is a column reference or contains one, such as within a cast operation. It returns the Column if found.

§Arguments

  • expr - A reference to an Expr to inspect for a column reference.

§Returns

An Option<Column> containing the column reference if found, otherwise None.