Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Create the following UDF
CREATE FUNCTION check(x) { select case when x=x then 10 else 0 end }
The following query returns 0 instead of 10
select check(random())
We should not inline non-pure functions in UDF body.