Skip to content
Snippets Groups Projects
Commit 9777a582 authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

test: temporarily fix test_select to work with _pico_space

This will be changed in a second
parent b5f978d6
No related branches found
No related tags found
1 merge request!530test: temporarily fix test_select to work with _pico_space
Pipeline #18383 failed
Subproject commit 976bbf1bb25e8fee406c285b14dc16a1391fad3a
Subproject commit ccbd6c822c83b52e2563bb96e4424b6e102674b6
......@@ -72,11 +72,19 @@ def test_select(cluster: Cluster):
apply_migration(i1, 2)
space_id = i1.eval("return box.space.T.id")
for n, sql in {
3: """insert into "_pico_space" values({id}, 'A');""".format(id=space_id),
}.items():
i1.call("pico.add_migration", n, sql)
apply_migration(i2, 3)
space_def = [
space_id,
"T",
["sharded_implicitly", ["A"]],
[
dict(name="A", type="integer", is_nullable=False),
dict(name="bucket_id", type="unsigned", is_nullable=False),
],
69,
False,
]
i1.call("box.space._pico_space:put", space_def)
i2.call("box.space._pico_space:put", space_def)
data = i1.sql("""insert into t values(1);""")
assert data["row_count"] == 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment