mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
[test][integration] fetch part
This commit is contained in:
parent
fbd26789af
commit
520f4f39ec
@ -28,13 +28,13 @@ def test_fetch_part_from_allowed_zookeeper(start_cluster):
|
|||||||
"CREATE TABLE simple2 (date Date, id UInt32) ENGINE = ReplicatedMergeTree('/clickhouse/tables/1/simple', 'node') ORDER BY tuple() PARTITION BY date;"
|
"CREATE TABLE simple2 (date Date, id UInt32) ENGINE = ReplicatedMergeTree('/clickhouse/tables/1/simple', 'node') ORDER BY tuple() PARTITION BY date;"
|
||||||
)
|
)
|
||||||
node.query(
|
node.query(
|
||||||
"ALTER TABLE simple2 FETCH PART '20200827_1_1_0' FROM 'zookeeper2:/clickhouse/tables/0/simple';"
|
"ALTER TABLE simple2 FETCH PART '20200827_0_0_0' FROM 'zookeeper2:/clickhouse/tables/0/simple';"
|
||||||
)
|
)
|
||||||
node.query("ALTER TABLE simple2 ATTACH PART '20200827_1_1_0';")
|
node.query("ALTER TABLE simple2 ATTACH PART '20200827_0_0_0';")
|
||||||
|
|
||||||
with pytest.raises(QueryRuntimeException):
|
with pytest.raises(QueryRuntimeException):
|
||||||
node.query(
|
node.query(
|
||||||
"ALTER TABLE simple2 FETCH PART '20200827_1_1_0' FROM 'zookeeper:/clickhouse/tables/0/simple';"
|
"ALTER TABLE simple2 FETCH PART '20200827_0_0_0' FROM 'zookeeper:/clickhouse/tables/0/simple';"
|
||||||
)
|
)
|
||||||
|
|
||||||
assert node.query("SELECT id FROM simple2").strip() == "1"
|
assert node.query("SELECT id FROM simple2").strip() == "1"
|
||||||
|
Loading…
Reference in New Issue
Block a user