diff --git a/python/python/tests/test_fts.py b/python/python/tests/test_fts.py index c101e01a1..976a3be49 100644 --- a/python/python/tests/test_fts.py +++ b/python/python/tests/test_fts.py @@ -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): diff --git a/python/python/tests/test_s3.py b/python/python/tests/test_s3.py index 3bee14cd3..256ccb1d4 100644 --- a/python/python/tests/test_s3.py +++ b/python/python/tests/test_s3.py @@ -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"]