Description
Short-circuit expression evaluation impacts the performance significantly.
e.g.
In expression: (a>b) && (c>d), if a>b equals false or null, the expression value is false or null definitely without considering the value of sub expression c>d.
However, if c or d contains a stateful UDF (for example, the UDF row_sequence) as its child expression, we have to evaluate the stateful expression but ignore its result.