Function plan_as_of_or_up_to

Source
pub fn plan_as_of_or_up_to(
    scx: &StatementContext<'_>,
    expr: Expr<Aug>,
) -> Result<Timestamp, PlanError>
Expand description

Plans and evaluates a scalar expression in a OneShot context to a non-null MzTimestamp.

Produces PlanError::InvalidAsOfUpTo if the expression is

  • not a constant,
  • not castable to MzTimestamp,
  • is null,
  • contains an unmaterializable function,
  • some other evaluation error occurs, e.g., a division by 0,
  • contains aggregates, subqueries, parameters, or window function calls.