Return all references to columns in this expression. # Example ``` # use std::collections::HashSet; # use datafusion_common::Column; # use datafusion_expr::col; // For an expression `a + (b * a)` let expr = col("a") + (col("b") * col("a")); let refs = expr.column_refs(); // refs contains "a" and "b" assert_eq!(refs.len(), 2); assert!(refs.contains(&Column::new_unqualified("a"))); assert!(refs.con
(&self)
| 2059 | /// assert!(refs.contains(&Column::new_unqualified("b"))); |
| 2060 | /// ``` |
| 2061 | pub fn column_refs(&self) -> HashSet<&Column> { |
| 2062 | let mut using_columns = HashSet::new(); |
| 2063 | self.add_column_refs(&mut using_columns); |
| 2064 | using_columns |
| 2065 | } |
| 2066 | |
| 2067 | /// Adds references to all columns in this expression to the set |
| 2068 | /// |