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]: Session timestamp override loses a microsecond for some fractions #31047
A fractional value accepted by SET SESSION timestamp can be returned one microsecond early by NOW(6) and CURRENT_TIMESTAMP(6). The configured session value reads back at the requested six-decimal precision.
The same one-microsecond loss reproduced for .250000, .625000, and .999999:
Configured fraction
NOW(6) / CURRENT_TIMESTAMP(6)
.123456
.123456
.125000
.124999
.250000
.249999
.375000
.375000
.500000
.500000
.625000
.624999
.750000
.750000
.875000
.875000
.999999
.999998
Each value was tested on its own fresh session. SYSDATE() remained tied to wall time, as expected. The exact .123456 and .500000 values covered by the existing session-override regression still pass.
Evidence and scope
This was reproduced over the real MySQL protocol on an isolated local MatrixOne service built from 6f773c556d4f3177f5373eb193cd576e080b662f (binary SHA256 51489b59a60310e79eddcf1182c582685b2c60f800f35a0a625eb5359469349b). The complete SQL fixture and result matrix are available in the QA run artifacts; no customer data was used.
The pinned source main 0abc1d317aea608f3a228297d68e1ae4e619a3a2 has unchanged relevant frontend/session and temporal planner source files from the tested service revision, but a service binary built from 0abc1d3 was not run. This report therefore records the exact tested binary and does not claim a newer binary run.
Activity
fix(frontend): preserve microseconds in session timestamp overrides (#…
Ariznawlll commentedon Dec 1, 2026
已在当前官方 main
c22be4264ea21f6a705437096b962a5b2337295f完成原场景复测,验收开末官方 SHA 一致,双 CNgit_version()均一致。.123456/.125000/.250000/.375000/.500000/.625000/.750000/.875000/.999999,并交替连接 CN1/CN2。@@session.timestamp、NOW(6)、CURRENT_TIMESTAMP(6);原先少 1 微秒的.125000/.250000/.625000/.999999均返回原值。23339c55fc2e71862b3f95cc470d816bf0f47356:issue_31047_session_timestamp.py及 golden。原生 Go 编译两次均仅因
no space left on device失败,未计为原生 PASS,也未据此关闭;本关闭依据是上述真实双 CN 原场景验收。证据:screenshot-20261130/three-correctness-main-c22be/。