fix integration test_insert_into_distributed allow_experimental_low_cardinality_type

This commit is contained in:
root 2018-12-04 15:11:39 +08:00
parent 192092c2bd
commit 6da945b2a7
2 changed files with 9 additions and 12 deletions

View File

@ -60,20 +60,17 @@ CREATE TABLE distributed (date Date, id UInt32) ENGINE = Distributed('shard_with
''') ''')
shard1.query(''' shard1.query('''
SET allow_experimental_low_cardinality_type = 1 SET allow_experimental_low_cardinality_type = 1;
''') CREATE TABLE low_cardinality (d Date, x UInt32, s LowCardinality(String)) ENGINE = MergeTree(d, x, 8192)''')
shard1.query('''
CREATE TABLE low_cardinality (d Date, x UInt32, s LowCardinality(String)) ENGINE = MergeTree(d, x, 8192)
''')
shard2.query(''' shard2.query('''
SET allow_experimental_low_cardinality_type = 1 SET allow_experimental_low_cardinality_type = 1;
''') CREATE TABLE low_cardinality (d Date, x UInt32, s LowCardinality(String)) ENGINE = MergeTree(d, x, 8192)''')
shard2.query('''
CREATE TABLE low_cardinality (d Date, x UInt32, s LowCardinality(String)) ENGINE = MergeTree(d, x, 8192)
''')
shard1.query(''' shard1.query('''
CREATE TABLE low_cardinality_all (d Date, x UInt32, s LowCardinality(String)) ENGINE = Distributed('shard_with_low_cardinality', 'default', 'low_cardinality', sipHash64(s)) SET allow_experimental_low_cardinality_type = 1;
''') CREATE TABLE low_cardinality_all (d Date, x UInt32, s LowCardinality(String)) ENGINE = Distributed('shard_with_low_cardinality', 'default', 'low_cardinality', sipHash64(s))''')
yield cluster yield cluster
finally: finally: