def METHOD_NAME(self):
    """Check that trying to use window function in `GROUP BY` returns an error.
    """
    exitcode = 47
    message = "DB::Exception: Unknown identifier: row_number() OVER (ORDER BY salary ASC); there are columns"
    sql = ("SELECT rank() OVER (ORDER BY 1), count(*) FROM empsalary GROUP BY row_number() OVER (ORDER BY salary) < 10")
    with When("I execute query", description=sql):
        r = current().context.node.query(sql, exitcode=exitcode, message=message)