Allow to CREATE TEMP TABLE in SQL generation when necessary. Previously we assume RAND() in the WITH clause behave as if they are evaluated only once, but that's not always the case. In situation when that's not true, we need to CREATE TEMP TABLE to materialize the subqueries that have volatile functions, so that the same result is used in all places. #224
+197
−15