tests: fix sampling expression for v1.1.54310+

see https://github.com/yandex/ClickHouse/blob/master/CHANGELOG.md#clickhouse-release-1154310-2017-11-01

and the commit that made the change
75c65c7b59 (diff-fa7377955af063c4fa16e20f2595937bR120)
This commit is contained in:
Ivan Ladelshchikov 2018-03-14 12:47:46 +04:00 committed by Itai Shirav
parent a5f2fa4d76
commit 99de0f6637

View File

@ -33,7 +33,9 @@ class EnginesTestCase(_EnginesHelperTestCase):
def test_merge_tree_with_sampling(self):
class TestModel(SampleModel):
engine = MergeTree('date', ('date', 'event_id', 'event_group', 'intHash32(event_id)'), sampling_expr='intHash32(event_id)')
engine = MergeTree('date',
('date', 'event_id', 'event_group', 'intHash32(event_id)'),
sampling_expr='intHash32(event_id)')
self._create_and_insert(TestModel)
def test_merge_tree_with_granularity(self):