-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Support up to 15 boolean expressions for casewhen scalar function #11566
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
Support up to 15 boolean expressions for casewhen scalar function #11566
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11566 +/- ##
============================================
+ Coverage 62.94% 63.10% +0.15%
- Complexity 1106 1109 +3
============================================
Files 2325 2325
Lines 124772 124777 +5
Branches 19052 19052
============================================
+ Hits 78534 78736 +202
+ Misses 40625 40439 -186
+ Partials 5613 5602 -11
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 31 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
walterddr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. can we add a test?
48f2d6b to
d23ee17
Compare
|
@walterddr Added the test. |
d23ee17 to
3610386
Compare
Current implementation supports up to 5 boolean expressions. This improves to support up to 15 expressions.
3610386 to
ee51f5a
Compare
Jackie-Jiang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is so ugly, but no easy solution lol..
Should we also add support for case-when without else?
|
The use case that I faced needs the else statement. If we don't cover else, we need to tweak by setting |
|
@snleee When else is not configured, we should just return |
Current implementation supports up to 5 boolean expressions. This improves to support up to 15 expressions.