Query: optimize CASE statement - remove conditions that are never hit #18935
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-enhancement
Milestone
we can simply remove the WHEN block since it's condition is never met so the result would be just
y
If all the WHEN blocks have been removed and there is no ELSE condition we can return NULL
The text was updated successfully, but these errors were encountered: