risingwave_frontend::binder::expr::function::builtin_scalar

Function rewrite_nullif_to_case_when

source
fn rewrite_nullif_to_case_when(
    inputs: Vec<ExprImpl>,
) -> Result<Vec<ExprImpl>, RwError>
Expand description

Make sure inputs only have 2 value and rewrite the arguments. Nullif(expr1,expr2) -> Case(Equal(expr1 = expr2),null,expr1).