pub fn plan_cast(
ecx: &ExprContext<'_>,
ccx: CastContext,
expr: HirScalarExpr,
to: &SqlScalarType,
) -> Result<HirScalarExpr, PlanError>Expand description
Plans a cast between SqlScalarTypes, specifying which types of casts are
permitted using CastContext.
§Errors
If a cast between the ScalarExpr’s base type and the specified type is:
- Not possible, e.g.
BytestoInterval - Not permitted, e.g. implicitly casting from
Float64toFloat32. - Not implemented yet