mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Small test fixes.
This commit is contained in:
parent
d32d8ceff6
commit
8ab722a6af
@ -374,6 +374,10 @@ def create_table(self, name, statement, on_cluster=False):
|
||||
node = current().context.node
|
||||
try:
|
||||
with Given(f"I have a {name} table"):
|
||||
if on_cluster:
|
||||
node.query(f"DROP TABLE IF EXISTS {name} ON CLUSTER {on_cluster}")
|
||||
else:
|
||||
node.query(f"DROP TABLE IF EXISTS {name}")
|
||||
node.query(statement.format(name=name))
|
||||
yield name
|
||||
finally:
|
||||
|
@ -10,16 +10,16 @@ def subquery_expr_preceding(self):
|
||||
expected = convert_output("""
|
||||
sum | unique1
|
||||
-----+---------
|
||||
0 | 0
|
||||
1 | 1
|
||||
3 | 2
|
||||
5 | 3
|
||||
7 | 4
|
||||
9 | 5
|
||||
11 | 6
|
||||
13 | 7
|
||||
15 | 8
|
||||
17 | 9
|
||||
0 | 0
|
||||
1 | 1
|
||||
3 | 2
|
||||
5 | 3
|
||||
7 | 4
|
||||
9 | 5
|
||||
11 | 6
|
||||
13 | 7
|
||||
15 | 8
|
||||
17 | 9
|
||||
""")
|
||||
|
||||
execute_query(
|
||||
@ -272,7 +272,7 @@ def windows_with_same_partitioning_but_different_ordering(self):
|
||||
but different ordering.
|
||||
"""
|
||||
expected = convert_output("""
|
||||
first | last
|
||||
first | last
|
||||
------+-----
|
||||
7 | 7
|
||||
7 | 9
|
||||
@ -367,16 +367,16 @@ def in_view(self):
|
||||
expected = convert_output("""
|
||||
number | sum_rows
|
||||
---------+----------
|
||||
1 | 3
|
||||
2 | 6
|
||||
3 | 9
|
||||
4 | 12
|
||||
5 | 15
|
||||
6 | 18
|
||||
7 | 21
|
||||
8 | 24
|
||||
9 | 27
|
||||
10 | 19
|
||||
1 | 3
|
||||
2 | 6
|
||||
3 | 9
|
||||
4 | 12
|
||||
5 | 15
|
||||
6 | 18
|
||||
7 | 21
|
||||
8 | 24
|
||||
9 | 27
|
||||
10 | 19
|
||||
""")
|
||||
|
||||
execute_query(
|
||||
|
Loading…
Reference in New Issue
Block a user