octosql icon indicating copy to clipboard operation
octosql copied to clipboard

unsupported expression CaseExpr

Open Lvnszn opened this issue 2 years ago • 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 

Lvnszn avatar May 10 '23 06:05 Lvnszn

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

cube2222 avatar May 11 '23 13:05 cube2222

let me try

Lvnszn avatar May 12 '23 06:05 Lvnszn