pub fn plan_cast(
ecx: &ExprContext<'_>,
ccx: CastContext,
expr: HirScalarExpr,
to: &ScalarType,
) -> Result<HirScalarExpr, PlanError>
Expand description
Plans a cast between ScalarType
s, 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.
Bytes
toInterval
- Not permitted, e.g. implicitly casting from
Float64
toFloat32
. - Not implemented yet