Return True if the given :class:`_expression.ColumnElement` has a common ancestor to this :class:`_expression.ColumnElement`.
(self, othercolumn: ColumnElement[Any])
| 1603 | ) |
| 1604 | |
| 1605 | def shares_lineage(self, othercolumn: ColumnElement[Any]) -> bool: |
| 1606 | """Return True if the given :class:`_expression.ColumnElement` |
| 1607 | has a common ancestor to this :class:`_expression.ColumnElement`.""" |
| 1608 | |
| 1609 | return bool(self.proxy_set.intersection(othercolumn.proxy_set)) |
| 1610 | |
| 1611 | def _compare_name_for_result(self, other: ColumnElement[Any]) -> bool: |
| 1612 | """Return True if the given column element compares to this one |