mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2025-02-22 11:12:46 +03:00
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:
parent
a5f2fa4d76
commit
99de0f6637
|
@ -33,7 +33,9 @@ class EnginesTestCase(_EnginesHelperTestCase):
|
||||||
|
|
||||||
def test_merge_tree_with_sampling(self):
|
def test_merge_tree_with_sampling(self):
|
||||||
class TestModel(SampleModel):
|
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)
|
self._create_and_insert(TestModel)
|
||||||
|
|
||||||
def test_merge_tree_with_granularity(self):
|
def test_merge_tree_with_granularity(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user