-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
SQL: "Should not fold expression" for conditional function #49387
Labels
Comments
Pinging @elastic/es-search (:Search/SQL) |
matriv
added a commit
to matriv/elasticsearch
that referenced
this issue
Nov 21, 2019
Add extra checks to prevent ConstantFolding rule to try to fold the CASE/IIF functions early before the SimplifyCase rule gets applied. Fixes: elastic#49387
matriv
added a commit
that referenced
this issue
Nov 22, 2019
Add extra checks to prevent ConstantFolding rule to try to fold the CASE/IIF functions early before the SimplifyCase rule gets applied. Fixes: #49387
matriv
added a commit
that referenced
this issue
Nov 22, 2019
matriv
added a commit
that referenced
this issue
Nov 22, 2019
matriv
added a commit
that referenced
this issue
Nov 22, 2019
This was referenced Feb 3, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SELECT IIF(20 = 0, NULL, salary / 20) FROM test_emp
results in
The text was updated successfully, but these errors were encountered: