(
        self,
        from_relation: Optional[BaseRelation],
        to_relation: Optional[BaseRelation],
    )
return ''
Rename a relation in dbt. It will show up with a new name in
        `list_relations`, but bound views will remain bound.
Rename a relation in dbt. It will show up with a new name in
        `list_relations`, but bound views will remain bound.
Rename a relation in dbt . It will show up with a new name in list_relations but bound views will remain bound .
def cache_renamed(
        self,
        from_relation: Optional[BaseRelation],
        to_relation: Optional[BaseRelation],
    ) -> str:
        """Rename a relation in dbt. It will show up with a new name in
        `list_relations`, but bound views will remain bound.
        """
        if from_relation is None or to_relation is None:
            name = self.nice_connection_name()
            src_name = _relation_name(from_relation)
            dst_name = _relation_name(to_relation)
            raise_compiler_error(
                'Attempted to rename {} to {} for {}'
                .format(src_name, dst_name, name)
            )

        self.cache.rename(from_relation, to_relation)
        return ''
def cache_renamed ( self , from_relation : Optional [ BaseRelation ] , to_relation : Optional [ BaseRelation ] , ) -> str : if from_relation is None or to_relation is None : name = self . nice_connection_name ( ) src_name = _relation_name ( from_relation ) dst_name = _relation_name ( to_relation ) raise_compiler_error ( 'Attempted to rename {} to {} for {}' . format ( src_name , dst_name , name ) ) self . cache . rename ( from_relation , to_relation ) return ''