Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] if function return error result when return multiple columns in vectorized mode #13758

Closed
2 of 3 tasks
caiconghui opened this issue Oct 28, 2022 · 1 comment · Fixed by #13779
Closed
2 of 3 tasks
Labels
area/sql/function Issues or PRs related to the SQL functions

Comments

@caiconghui
Copy link
Contributor

caiconghui commented Oct 28, 2022

Search before asking

  • I had searched in the issues and found no similar issues.

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?

  • Yes I am willing to submit a PR!

Code of Conduct

@caiconghui
Copy link
Contributor Author

caiconghui commented Oct 29, 2022

no vec environment is ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sql/function Issues or PRs related to the SQL functions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant