def METHOD_NAME(self):
    """Check that defining of order clause with invalid expr returns an error.
    """
    exitcode = 47
    message = "Exception: Missing columns: 'foo'"
    self.context.node.query("SELECT sum(number) OVER (ORDER BY foo) FROM numbers(1,3)", exitcode=exitcode, message=message)