[Bug] if function return error result when return multiple columns in vectorized mode #13758
Closed
2 of 3 tasks
Labels
area/sql/function
Issues or PRs related to the SQL functions
Search before asking
Version
1.1.2 lts-1.1
What's Wrong?
mysql> select k1, v1, if (v1 / 1 >= 0, 1, 0), if(v1 / 1 >= 0 , 1, 0), v1 / 1, v1 / 1 from test limit 1;
+------+------+-----------------------------+-----------------------------+------------+------------+
| k1 | v1 | if(
v1
/ 1.0 >= 0.0, 1, 0) | if(v1
/ 1.0 >= 0.0, 1, 0) |v1
/ 1.0 |v1
/ 1.0 |+------+------+-----------------------------+-----------------------------+------------+------------+
| 1 | NULL | 1 | 1 | NULL | NULL |
+------+------+-----------------------------+-----------------------------+------------+------------+
1 row in set (0.01 sec)
if(v1 / 1 >= 0 , 1, 0) return 0
What You Expected?
return true result
How to Reproduce?
No response
Anything Else?
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: