Fix for row number window function optimization

I don't think this fix is sufficient. What if the expression is something like "row_number() - 5 < 10"?