Open jackylee-ch opened 1 year ago
Describe the bug We meet this problem when there is a castBIGINTOrNull in SMJ conditions and WSCG is false.
return input_field_validity_1_4 && input_field_validity_0_3 && (input_field_1_4 < input_field_0_3); ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ | | | int64_t {aka long int} std::string {aka std::basic_string<char>}
To Reproduce
Expected behavior No Exception thrown.
Additional context It seems that we still use CodeGenNodeVisitor to generate codes, which does not works well with case function. Maybe we can use ExpressionCodegenVisitor instead?
CodeGenNodeVisitor
case
ExpressionCodegenVisitor
Describe the bug We meet this problem when there is a castBIGINTOrNull in SMJ conditions and WSCG is false.
To Reproduce
Expected behavior No Exception thrown.
Additional context It seems that we still use
CodeGenNodeVisitor
to generate codes, which does not works well withcase
function. Maybe we can useExpressionCodegenVisitor
instead?