mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2024-11-22 00:56:34 +03:00
Support for data skipping indexes
This commit is contained in:
parent
635197de38
commit
4be1b0437f
|
@ -7,7 +7,7 @@ class IndexesTest(unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.database = Database('test-db', log_statements=True)
|
self.database = Database('test-db', log_statements=True)
|
||||||
if self.database.server_version < (19, 3, 3):
|
if self.database.server_version < (20, 1, 2, 4):
|
||||||
raise unittest.SkipTest('ClickHouse version too old')
|
raise unittest.SkipTest('ClickHouse version too old')
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
|
|
|
@ -127,7 +127,7 @@ class MigrationsTestCase(unittest.TestCase):
|
||||||
with self.assertRaises(ServerError):
|
with self.assertRaises(ServerError):
|
||||||
self.database.insert([ModelWithConstraints(f1=99, f2='x')])
|
self.database.insert([ModelWithConstraints(f1=99, f2='x')])
|
||||||
|
|
||||||
if self.database.server_version < (19, 3, 3):
|
if self.database.server_version < (20, 1, 2, 4):
|
||||||
# Creating indexes
|
# Creating indexes
|
||||||
self.database.migrate('tests.sample_migrations', 18)
|
self.database.migrate('tests.sample_migrations', 18)
|
||||||
self.assertTrue(self.table_exists(ModelWithIndex))
|
self.assertTrue(self.table_exists(ModelWithIndex))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user