fix intergration test

This commit is contained in:
Dao 2021-12-18 12:27:31 +08:00
parent 8bbd006d42
commit 21b8a11907

View File

@ -34,11 +34,11 @@ def test_groupBitmapAnd_on_distributed_table(start_cluster):
ENGINE = MergeTree()
ORDER BY tuple()""".format(local_table_name))
node.query("""CREATE TABLE {0}
node.query("""CREATE TABLE {}
(
z AggregateFunction(groupBitmap, UInt32)
)
ENGINE = Distributed('{1}', 'default', '{0}')""".format(distributed_table_name, cluster_name))
ENGINE = Distributed('{}', 'default', '{}')""".format(distributed_table_name, cluster_name, local_table_name))
insert_data(node1, local_table_name)
expected = "10"
@ -60,11 +60,11 @@ def test_aggregate_function_versioning(start_cluster):
ENGINE = MergeTree()
ORDER BY tuple()""".format(local_table_name))
node.query("""CREATE TABLE {0}
node.query("""CREATE TABLE {}
(
z AggregateFunction(groupBitmap, UInt32)
)
ENGINE = Distributed('{1}', 'default', '{0}')""".format(distributed_table_name, cluster_name))
ENGINE = Distributed('{}', 'default', '{}')""".format(distributed_table_name, cluster_name, local_table_name))
node.query("""INSERT INTO {} VALUES
(bitmapBuild(cast([1,2,3,4,5,6,7,8,9,10] as Array(UInt32))));""".format(local_table_name))