def METHOD_NAME(self):
    """Check that trying to use window function in `WHERE` returns an error.
    """
    exitcode = 184
    message = "DB::Exception: Window function row_number() OVER (ORDER BY salary ASC) is found in WHERE in query"
    sql = ("SELECT * FROM empsalary WHERE row_number() OVER (ORDER BY salary) < 10")
    with When("I execute query", description=sql):
        r = current().context.node.query(sql, exitcode=exitcode, message=message)