Query: optimize nested CASE blocks #18774
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
Some nested CASE blocks, e.g.:
can be optimized to:
CASE WHEN condition1 AND condition2 THEN result1 ELSE result2 END
In practice we get those kinds of chained CASE blocks in the following scenarios:
The text was updated successfully, but these errors were encountered: