Record the reference to `relation`, if it's not a CTE reference.
(&mut self, relation: &ObjectName)
| 59 | impl RelationVisitor { |
| 60 | /// Record the reference to `relation`, if it's not a CTE reference. |
| 61 | fn insert_relation(&mut self, relation: &ObjectName) -> ControlFlow<DataFusionError> { |
| 62 | match object_name_to_table_reference( |
| 63 | relation.clone(), |
| 64 | self.enable_ident_normalization, |
| 65 | ) { |
| 66 | Ok(relation) => { |
| 67 | if !self.relations.contains(&relation) |
| 68 | && !self.ctes_in_scope.contains(&relation) |
| 69 | { |
| 70 | self.relations.insert(relation); |
| 71 | } |
| 72 | ControlFlow::Continue(()) |
| 73 | } |
| 74 | Err(e) => ControlFlow::Break(e), |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | impl Visitor for RelationVisitor { |
no test coverage detected