Indicates if this is a constant empty collection. A false value does not mean the collection is known to be non-empty, only that we cannot currently determine that it is statically empty.
(&self)
| 1465 | /// A false value does not mean the collection is known to be non-empty, |
| 1466 | /// only that we cannot currently determine that it is statically empty. |
| 1467 | pub fn is_empty(&self) -> bool { |
| 1468 | if let Some((Ok(rows), ..)) = self.as_const() { |
| 1469 | rows.is_empty() |
| 1470 | } else { |
| 1471 | false |
| 1472 | } |
| 1473 | } |
| 1474 | |
| 1475 | /// If the expression is a negated project, return the input and the projection. |
| 1476 | pub fn is_negated_project(&self) -> Option<(&MirRelationExpr, &[usize])> { |