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 ORM places snapshot hint after table alias and fails valid aliased query #31209
Local SDK QA (2026-10-26): SDK source 28e8760905a7f39dba2ce436357ea75492f30512; isolated MatrixOne service binary 83c1e23526fc0ed31188abd7fc2ca87cd3a6d4b3 (SHA-256 6bebe05311ae6438967a824641e3849fbbc9af298003177351794601edf14b4b). Passed tests/online/test_sdk_quality_contracts.py::test_snapshot_same_time_all_tables and the offline snapshot rewrite contracts. The live sync/async snapshot context, qualified table, and aliased ORM query returned the pre-mutation snapshot row after a later table update; the live read showed the changed value. Focused SDK snapshot behavior against the older backend.
核对已合入回归的 SDK 公开入口、SQL/返回值断言和修复后实际服务结果;未修改产品源码,未运行全量 SDK suite 或 race。
回归测试
#31262 已包含 clients/python/tests/online/test_sdk_quality_contracts.py::test_snapshot_same_time_all_tables。Python SDK API 行为无法由纯 SQL MOTR 代替,未新增 MO 或 MOTR PR。#31262 六个离线 SDK CI job 成功;在线 CI SKIPPED,在线结果采用本地实测。
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_quality_contracts.py::test_snapshot_same_time_all_tablesand the offline snapshot rewrite contracts. The live sync/async snapshot context, qualified table, and aliased ORM query returned the pre-mutation snapshot row after a later table update; the live read showed the changed value. Focused SDK snapshot behavior against the older backend.Ariznawlll commentedon Oct 27, 2026
测试版本
420786e21566e5b9d5875e7d6a7f3102fd0761af;修复 PR fix(python-sdk): unify query contracts and atomic manager operations #31262 已 MERGED,merge commit28e8760905a7f39dba2ce436357ea75492f30512已核实在该 main 祖先链。8bd0f1f4c60cd0590c68cdbb2cbca31fc9d39d071ec367ab56d5c49b4eec327e。原问题验证
带别名的快照 ORM 查询
query(root,snapshot=sp).alias('a').join(other,...).select('a.id')成功返回快照行[(1,)];原生 SQL 和同步/异步 snapshot context 也为[(1,)],实时右表 ref 已改为 2。原来的 hint-after-alias 语法错误在连续 3 轮未出现。Happy Path 覆盖
Unhappy Path 覆盖
白盒验证
核对已合入回归的 SDK 公开入口、SQL/返回值断言和修复后实际服务结果;未修改产品源码,未运行全量 SDK suite 或 race。
回归测试
#31262 已包含
clients/python/tests/online/test_sdk_quality_contracts.py::test_snapshot_same_time_all_tables。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 。测试结论
测试通过。