From 99de0f66379301cc753f0f89a1d9bfda633361cd Mon Sep 17 00:00:00 2001 From: Ivan Ladelshchikov Date: Wed, 14 Mar 2018 12:47:46 +0400 Subject: [PATCH] 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 https://github.com/yandex/ClickHouse/commit/75c65c7b59be5620e1e4db305eb4e879531f37f3#diff-fa7377955af063c4fa16e20f2595937bR120 --- tests/test_engines.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_engines.py b/tests/test_engines.py index 30cca75..8818815 100644 --- a/tests/test_engines.py +++ b/tests/test_engines.py @@ -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):