Returns `true` if the given [`TableFactor`] is lateral.
(factor: &TableFactor)
| 181 | |
| 182 | /// Returns `true` if the given [`TableFactor`] is lateral. |
| 183 | pub(crate) fn is_lateral(factor: &TableFactor) -> bool { |
| 184 | match factor { |
| 185 | TableFactor::Derived { lateral, .. } => *lateral, |
| 186 | TableFactor::Function { lateral, .. } => *lateral, |
| 187 | TableFactor::UNNEST { .. } => true, |
| 188 | _ => false, |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | /// Returns `true` if the given [`Join`] is lateral. |
| 193 | pub(crate) fn is_lateral_join(join: &Join) -> Result<bool> { |
no outgoing calls
no test coverage detected
searching dependent graphs…