Return True if the given :class:`_expression.ColumnElement` has a common ancestor to this :class:`_expression.ColumnElement`.
(self, othercolumn: ColumnElement[Any])
| 1665 | ) |
| 1666 | |
| 1667 | def shares_lineage(self, othercolumn: ColumnElement[Any]) -> bool: |
| 1668 | """Return True if the given :class:`_expression.ColumnElement` |
| 1669 | has a common ancestor to this :class:`_expression.ColumnElement`.""" |
| 1670 | |
| 1671 | return bool(self.proxy_set.intersection(othercolumn.proxy_set)) |
| 1672 | |
| 1673 | def _compare_name_for_result(self, other: ColumnElement[Any]) -> bool: |
| 1674 | """Return True if the given column element compares to this one |