Check if node contains LIMIT
(&self, node: &LogicalNode)
| 569 | |
| 570 | /// Check if node contains LIMIT |
| 571 | fn contains_limit(&self, node: &LogicalNode) -> bool { |
| 572 | match node { |
| 573 | LogicalNode::Limit { .. } => true, |
| 574 | LogicalNode::Filter { input, .. } |
| 575 | | LogicalNode::Project { input, .. } |
| 576 | | LogicalNode::Sort { input, .. } |
| 577 | | LogicalNode::Distinct { input, .. } => self.contains_limit(input), |
| 578 | LogicalNode::Join { left, right, .. } => { |
| 579 | self.contains_limit(left) || self.contains_limit(right) |
| 580 | } |
| 581 | _ => false, |
| 582 | } |
| 583 | } |
| 584 | |
| 585 | /// Check if node returns unique values |
| 586 | fn returns_unique_values(&self, node: &LogicalNode) -> bool { |
no outgoing calls
no test coverage detected