test(python): fix remote create_index schema fixture (#3462)

The latest main Python workflow fails across multiple matrix jobs
because `test_remote_create_index_new_api` opens a remote table whose
mocked schema only exposes `id`, while the new `create_index(...,
config=...)` path validates the requested indexed columns.

This updates the remote-table fixture to include the indexed columns
used by the smoke test and checks the emitted column payloads, keeping
the test aligned with the schema-aware API path.
This commit is contained in:
Xuanwo
2026-05-29 23:04:42 +08:00
committed by GitHub
parent d05fe8ec44
commit 60ac5c9a7c

View File

@@ -508,7 +508,30 @@ def test_remote_create_index_new_api():
version=1,
schema=dict(
fields=[
dict(name="id", type={"type": "int64"}, nullable=False)
dict(name="id", type={"type": "int64"}, nullable=False),
dict(
name="category",
type={"type": "string"},
nullable=False,
),
dict(
name="text", type={"type": "string"}, nullable=False
),
dict(
name="vector",
type={
"type": "fixed_size_list",
"fields": [
dict(
name="item",
type={"type": "float"},
nullable=True,
)
],
"length": 2,
},
nullable=False,
),
]
),
)
@@ -543,6 +566,13 @@ def test_remote_create_index_new_api():
)
assert len(received_requests) == 5
assert [req["column"] for req in received_requests] == [
"vector",
"category",
"text",
"vector",
"vector",
]
def test_table_wait_for_index_timeout():