risingwave_frontend::expr

Function cast_ok_base

source
pub fn cast_ok_base(
    source: &DataType,
    target: &DataType,
    allows: CastContext,
) -> bool
Expand description

Checks whether casting from source to target is ok in allows context. Both source and target must be base types, i.e. not struct or array.