def test_timestamp_deltas(self):
        units = ['year', 'month', 'week', 'day',
                 'hour', 'minute', 'second',
                 'millisecond', 'microsecond']

        t = self.table.i
        f = '`i`'

        cases = []
        for unit in units:
            K = 5
            offset = getattr(ibis, unit)(K)
            template = '{0}s_add({1}, {2})'

            cases.append((t + offset, template.format(unit, f, K)))
            cases.append((offset - t, template.format(unit, f, -K)))

        self._check_expr_cases(cases)
dataset/ETHPy150Open cloudera/ibis/ibis/impala/tests/test_exprs.py/TestValueExprs.test_timestamp_deltas/swapped operands of `-`