- col = table.c[self.column]
- if self.lookup_type == 'lookup_all':
- return col.contains(self.tokens)
- if self.lookup_type == 'lookup_any':
- return cast(SaColumn, col.overlaps(self.tokens))
-
- return sa.func.coalesce(sa.null(), col).contains(self.tokens) # pylint: disable=not-callable