The number of fields this expression returns
(&self)
| 302 | |
| 303 | /// The number of fields this expression returns |
| 304 | pub fn nfields(&self) -> usize { |
| 305 | match self { |
| 306 | Self::RelVar(..) => 1, |
| 307 | Self::LeftDeepJoin(join) | Self::EqJoin(join, ..) => join.lhs.nfields() + 1, |
| 308 | Self::Select(input, _) => input.nfields(), |
| 309 | } |
| 310 | } |
| 311 | |
| 312 | /// Does this expression return this field? |
| 313 | pub fn has_field(&self, field: &str) -> bool { |