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 Stage mixed-case names fail readback and ALTER reports failure after commit #31258
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_stage_and_pitr_observed_state[sync] and [async]. A mixed-case Stage name was created, read by its original name with canonical lowercase identity, and altered successfully; returned and subsequent readback comments matched. Existing-name no-op and missing-name IF EXISTS behavior were checked too.
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_stage_and_pitr_observed_state[sync]and[async]. A mixed-case Stage name was created, read by its original name with canonical lowercase identity, and altered successfully; returned and subsequent readback comments matched. Existing-name no-op and missing-name IF EXISTS behavior were checked too.Ariznawlll commentedon Oct 27, 2026
测试版本
420786e21566e5b9d5875e7d6a7f3102fd0761af;修复 PR fix(python-sdk): unify query contracts and atomic manager operations #31262 已 MERGED,merge commit28e8760905a7f39dba2ce436357ea75492f30512在该 main 的祖先链。8bd0f1f4c60cd0590c68cdbb2cbca31fc9d39d071ec367ab56d5c49b4eec327e。原问题验证
同步/异步 Stage manager 各 3 轮:创建混合大小写 Stage 后返回规范化小写名,
get(原大小写名)可读;alter改 comment 后返回和重读均为changed。不再发生 DDL 已提交却由 SDK 报错。Happy Path 覆盖
file:///tmp/first和first;更新后 comment 准确为changed。Unhappy Path 覆盖
if_not_exists=True为 no-op,返回旧 URL/comment;不存在名称if_exists=True的 ALTER 返回 None;最后 DROP 清理。白盒验证
核对已合入回归源码中的 SDK 公开入口、返回值断言与真实服务执行结果;未修改产品源码,未运行全量 SDK suite 或 race。
回归测试
#31262 已包含
clients/python/tests/online/test_sdk_wave2_contracts.py::test_stage_and_pitr_observed_state[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 。测试结论
测试通过。