cube2222/octosql

unsupported expression CaseExpr

Lvnszn opened this issue · 2 comments

how can i use case when in octosql

 couldn't parse aliased expression: &{Expr:<nil> Whens:[0xc000522a20] Else:0xc000522a40}: unsupported expression &{Expr:<nil> Whens:[0xc000522a20] Else:0xc000522a40} of type *sqlparser.CaseExpr 

Hey! It's not supported, so you'd have to contribute it. The implementation would be similar to how COALESCE is implemented.

let me try