"""
return self.expr.op("-|-", is_comparison=True)(other)
- def __add__(self, other):
+ def union(self, other):
"""Range expression. Returns the union of the two ranges.
Will raise an exception if the resulting range is not
contiguous.
"""
return self.expr.op("+")(other)
+ __add__ = union
+
class AbstractRangeImpl(AbstractRange):
"""marker for AbstractRange that will apply a subclass-specific
self.col.type,
)
+ self._test_clause(
+ self.col.union(self._data_str()),
+ "data_table.range + %(range_1)s",
+ self.col.type,
+ )
+
def test_intersection(self):
self._test_clause(
self.col * self.col,