test(python): fix CI regressions after tantivy removal

This commit is contained in:
Xuanwo
2026-04-18 11:05:17 +08:00
parent 44ce3841ff
commit b9dbed3cc0
2 changed files with 6 additions and 5 deletions

View File

@@ -494,8 +494,9 @@ def test_create_index_multiple_columns(tmp_path, table):
def test_nested_schema(tmp_path, table):
with pytest.raises(ValueError, match="Native FTS indexes can only be created"):
table.create_fts_index("nested.text")
table.create_fts_index("nested.text")
rs = table.search("puppy").limit(5).to_list()
assert len(rs) == 5
def test_search_index_with_filter(table):

View File

@@ -242,10 +242,10 @@ def test_s3_dynamodb_sync(s3_bucket: str, commit_table: str, monkeypatch):
# FTS indices should error since they are not supported yet.
with pytest.raises(
NotImplementedError,
match="Full-text search is only supported on the local filesystem",
ValueError,
match="Tantivy-based FTS has been removed",
):
table.create_fts_index("x")
table.create_fts_index("x", use_tantivy=True)
# make sure list tables still works
assert db.table_names() == ["test_ddb_sync"]