@classmethod
def from_str(cls, text):
    """ Convert a text representation of a qualified object name into an ObjectName instance

        For example, 'foo.bar', '"foo".bar', '"foo"."bar"', etc. will be converted an object with
        schema 'foo' and object name 'bar'. Double quotes around the schema or object name are
        stripped, but note that we don't do anything with impossible input like 'foo."bar".baz'
        (which is impossible because the object name would include double quotes in it). Instead,
        we let processing proceed and the issue bubble up downstream.
        """
    if '.' not in text:
        return cls(schema=text)
    schema, unqualified_name = text.split('.', 1)
    return cls(schema=schema, unqualified_name=unqualified_name)
