It seems there is a problem with scoping where a window function defined outside of the current block can be used in the inner block with the new analyzer, leading to nonsensical results. In general ...