llama-stack-mirror/tests/unit/providers/vector_io
Sergey Yedrikov 30be1fd8b7
fix: SQLiteVecIndex.create(..., bank_id="test_bank.123") - bank_id with a dot - leads to sqlite3.OperationalError (#2770) (#2771)
# What does this PR do?
Resolves https://github.com/meta-llama/llama-stack/issues/2770. It
replaces characters in SQLite table names that are not alphanumeric or
underscores with underscores and quotes the table names with square
brackets in SQL statements.

Closes #[2770]

## Test Plan
I added a ".123" suffix to the bank_id on the following line
```
    index = await SQLiteVecIndex.create(dimension=embedding_dimension, db_path=db_path, bank_id="test_bank.123")
```
in tests/unit/providers/vector_io/test_sqlite_vec.py, which, without the
fix in place, demonstrates the issue.
2025-07-16 08:25:44 -07:00
..
remote feat: Implement keyword search in milvus (#2231) 2025-07-14 19:39:55 -04:00
conftest.py fix(faiss): Delete file contents from kvstore (#2686) 2025-07-14 13:58:23 -04:00
test_chunk_utils.py chore: Updating chunk id generation to ensure uniqueness (#2618) 2025-07-04 10:26:35 +05:30
test_faiss.py chore: default to pytest asyncio-mode=auto (#2730) 2025-07-11 13:00:24 -07:00
test_qdrant.py chore: default to pytest asyncio-mode=auto (#2730) 2025-07-11 13:00:24 -07:00
test_sqlite_vec.py fix: SQLiteVecIndex.create(..., bank_id="test_bank.123") - bank_id with a dot - leads to sqlite3.OperationalError (#2770) (#2771) 2025-07-16 08:25:44 -07:00
test_vector_io_openai_vector_stores.py fix(faiss): Delete file contents from kvstore (#2686) 2025-07-14 13:58:23 -04:00