You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Python Pinecone query leaks primary key into match metadata despite separate id field #31252
Local SDK QA (2026-10-26): SDK source 28e8760905a7f39dba2ce436357ea75492f30512; isolated MatrixOne service binary 83c1e23526fc0ed31188abd7fc2ca87cd3a6d4b3 (SHA-256 6bebe05311ae6438967a824641e3849fbbc9af298003177351794601edf14b4b). Passed tests/online/test_sdk_wave2_contracts.py::test_vector_exact_values_identity_and_atomic_upsert[sync] and [async]. With include_metadata=True, the match exposed id='1' separately and metadata was exactly {'note':'old'}, excluding the primary key; the no-metadata path returned an empty mapping.
Activity
fix(python-sdk): unify query contracts and atomic manager operations (#…
XuPeng-SH commentedon Oct 26, 2026
Local SDK QA (2026-10-26): SDK source
28e8760905a7f39dba2ce436357ea75492f30512; isolated MatrixOne service binary83c1e23526fc0ed31188abd7fc2ca87cd3a6d4b3(SHA-2566bebe05311ae6438967a824641e3849fbbc9af298003177351794601edf14b4b). Passedtests/online/test_sdk_wave2_contracts.py::test_vector_exact_values_identity_and_atomic_upsert[sync]and[async]. Withinclude_metadata=True, the match exposedid='1'separately and metadata was exactly{'note':'old'}, excluding the primary key; the no-metadata path returned an empty mapping.Ariznawlll commentedon Oct 27, 2026
测试版本
420786e21566e5b9d5875e7d6a7f3102fd0761af;修复 PR fix(python-sdk): unify query contracts and atomic manager operations #31262 已 MERGED,merge commit28e8760905a7f39dba2ce436357ea75492f30512在该 main 的祖先链。8bd0f1f4c60cd0590c68cdbb2cbca31fc9d39d071ec367ab56d5c49b4eec327e。原问题验证
在单列主键
doc_key的向量表上查询include_metadata=True,Pinecone match 的id='1'独立存在,metadata 精确为{'note':'old'},不含主键;同步/异步各 3/3 通过。Happy Path 覆盖
include_metadata=False返回空字典;include_values=True的向量值为数值列表[3.0,4.0]。Unhappy Path 覆盖
ValueError且旧行保持note='old';不得把主键列混入 metadata。白盒验证
核对已合入回归源码中的 SDK 公开入口、返回值断言与真实服务执行结果;未修改产品源码,未运行全量 SDK suite 或 race。
回归测试
#31262 已包含
clients/python/tests/online/test_sdk_wave2_contracts.py::test_vector_exact_values_identity_and_atomic_upsert[sync/async]。此为 Python SDK 行为,纯 SQL MOTR 不能替代;未新增 MO 或 MOTR PR。#31262 六个离线 SDK CI job 成功、在线 CI SKIPPED;本地在线执行是独立证据。测试证据
本地 JUnit:
/private/tmp/mo-six-qa-20261026/qa-night/sdk-contract-round-{1,2,3}.xml(每轮 70、失败/错误/跳过均 0),sdk-offline-round-{1,2,3}.xml(每轮 112、失败/错误/跳过均 0)。修复 PR:#31262 。测试结论
测试通过。