def METHOD_NAME(self):
    """Check that trying to use window function in `FROM` returns an error.
    """
    exitcode = 46
    message = "DB::Exception: Unknown table function rank"
    sql = ("SELECT * FROM rank() OVER (ORDER BY random())")
    with When("I execute query", description=sql):
        r = current().context.node.query(sql, exitcode=exitcode, message=message)