From 60ac5c9a7c45cea78ec072626707cee1dcb05b58 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Fri, 29 May 2026 23:04:42 +0800 Subject: [PATCH] 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. --- python/python/tests/test_remote_db.py | 32 ++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/python/python/tests/test_remote_db.py b/python/python/tests/test_remote_db.py index ab49d76d4..bca18b527 100644 --- a/python/python/tests/test_remote_db.py +++ b/python/python/tests/test_remote_db.py @@ -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():