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 SDK filter_by silently drops predicates for string-table queries and unknown model fields #31207
Local SDK QA (2026-10-26): SDK source 28e8760905a7f39dba2ce436357ea75492f30512 passed tests/online/test_sdk_quality_contracts.py::test_public_query_contracts and ::test_async_public_contracts_and_pre_ping against isolated service binary 83c1e23526fc0ed31188abd7fc2ca87cd3a6d4b3 (SHA-256 6bebe05311ae6438967a824641e3849fbbc9af298003177351794601edf14b4b). Sync and async assertions require a string-table filter_by to return only the matching row, unknown mapped fields to raise ValueError, and an absent string-table key to return no row; all passed. Scope is these public query paths on the older backend, not a full SDK suite.
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
28e8760905a7f39dba2ce436357ea75492f30512passedtests/online/test_sdk_quality_contracts.py::test_public_query_contractsand::test_async_public_contracts_and_pre_pingagainst isolated service binary83c1e23526fc0ed31188abd7fc2ca87cd3a6d4b3(SHA-2566bebe05311ae6438967a824641e3849fbbc9af298003177351794601edf14b4b). Sync and async assertions require a string-tablefilter_byto return only the matching row, unknown mapped fields to raiseValueError, and an absent string-table key to return no row; all passed. Scope is these public query paths on the older backend, not a full SDK suite.Ariznawlll commentedon Oct 27, 2026
测试版本
420786e21566e5b9d5875e7d6a7f3102fd0761af;修复 PR fix(python-sdk): unify query contracts and atomic manager operations #31262 已 MERGED,merge commit28e8760905a7f39dba2ce436357ea75492f30512已核实在该 main 祖先链。8bd0f1f4c60cd0590c68cdbb2cbca31fc9d39d071ec367ab56d5c49b4eec327e。原问题验证
模型表含三行,字符串表名路径
.filter_by(label='red').all()精确返回 id[1];字符串表名.filter_by(id=99).first()返回 None。未知映射字段不再被静默忽略而是抛ValueError。同步/异步公开查询合同连续 3 轮通过。Happy Path 覆盖
[1]。Unhappy Path 覆盖
ValueError,不是全表扫描;不存在的字符串表键返回空,底表三行不变。白盒验证
核对已合入回归的 SDK 公开入口、SQL/返回值断言和修复后实际服务结果;未修改产品源码,未运行全量 SDK suite 或 race。
回归测试
#31262 已包含
clients/python/tests/online/test_sdk_quality_contracts.py::test_public_query_contracts和test_async_public_contracts_and_pre_ping。Python SDK API 行为无法由纯 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(每轮 tests=70、失败/错误/跳过均 0)及sdk-offline-round-{1,2,3}.xml(每轮 112、失败/错误/跳过均 0)。修复 PR:#31262 。测试结论
测试通过。