Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: Cover a Milvus write batch with several entities
Signed-off-by: jiwidi <fhjaime96@gmail.com>
  • Loading branch information
jiwidi committed Oct 28, 2026
commit 411f2e3c57081f61b2b979f5588cc341064dc047
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,29 @@ def test_write_batch_keeps_the_newest_row_per_entity(
assert rows_read[0]["city"].string_val == expected_city


def test_write_batch_keeps_one_row_per_entity(tmp_path: Path) -> None:
store = MilvusOnlineStore()
config = _lite_config(tmp_path)
fv = _scalar_feature_view()
now = datetime(2024, 1, 1, tzinfo=timezone.utc)

store.online_write_batch(
config,
fv,
[
(_entity_key(1), {"city": ValueProto(string_val="Oslo")}, now, now),
(_entity_key(2), {"city": ValueProto(string_val="Rome")}, now, now),
],
progress=None,
)

rows = _read(store, config, fv, [1, 2], ["city"])
assert [row["city"].string_val for row in rows if row is not None] == [
"Oslo",
"Rome",
]


@patch(f"{MILVUS_MODULE}.MilvusClient")
def test_placeholder_vector_is_indexed_and_valid(mock_client_cls: MagicMock) -> None:
mock_client = _mock_client(mock_client_cls, has_collection=False)
Expand Down
Loading