relabeled_clone(change_map)
Returns a clone (copy) of self
, with any column aliases relabeled. Column aliases are renamed when subqueries are created. relabeled_clone()
should also be called on any nested expressions and assigned to the clone.
change_map
is a dictionary mapping old aliases to new aliases.
Example:
def relabeled_clone(self, change_map): clone = copy.copy(self) clone.expression = self.expression.relabeled_clone(change_map) return clone
Please login to continue.