Skip to content

[Docs] Publish the native UUIDv7 compatibility contract #29803

Closed

Description

@XuPeng-SH

背景

MatrixOne UUID 契约的代码修复已随 matrixone PR #29800 合并(merge commit 8f48d6fac04bf612be65ed1b44477ef9b32cb88f)。matrixone-doc 中英文 UUID 参考文档仍描述 UUIDv1 / 完整 MySQL 兼容,与当前实现不一致,需要在正确的文档仓库 matrixorigin/matrixone-doc 更新。

此前的文档 PR #723 位于旧仓库 matrixorigin/matrixorigin.io,且已关闭;它不是 matrixone-doc 中的文档交付,也没有更新当前站点文档源。本 issue 跟踪在 matrixone-doc 的正确更新。

文档范围

按 matrixone-doc/AGENTS.md,编辑中英文源文件:

  • docs/zh/MatrixOne/Reference/Data-Types/uuid-type.md
  • docs/zh/MatrixOne/Reference/Functions-and-Operators/Other/uuid.md
  • docs/en/MatrixOne/Reference/Data-Types/uuid-type.md
  • docs/en/MatrixOne/Reference/Functions-and-Operators/Other/uuid.md

同步说明以下契约,确保中英文一致:

  • UUID() / UUID_V7() 生成 native UUIDv7;存储为 16 字节,客户端显示为标准 36 字符格式。
  • UUID_V1() 是显式 v1 生成函数;准确描述 UUID(datetime) 的时间边界语义,移除无参声明和 v1 示例中的过时说法。
  • native UUID 的 CTAS 类型及与任意文本比较的行为,与 MySQL 字符串语义有差异;需要字符表达式时说明 CAST(... AS CHAR) 用法。
  • UUID 与字符分支混合的值表达式可输出完整 UUID;不要据此宣称 UUID() 已完全兼容 MySQL。
  • 解释 UUIDv7 的排序特性,以及 UUID_TO_BIN swap flag 对 v7 的适用边界。

验收

  • 中英文四页的生成版本、返回/存储类型、格式、示例和兼容性描述一致,并与 matrixone 当前实现相符。
  • frontmatter 和 matrixone-doc 文档构建/校验通过;SQL 示例按当前实现核对。
  • 文档明确区分已实现行为与 MySQL 的有意差异,不承诺完整 MySQL UUID 兼容。

关联工作

Activity

  1. added
    kind/documentation
    on Oct 9, 2026
  2. XuPeng-SH commented on Oct 9, 2026

    @XuPeng-SH
    ContributorAuthor

    官方文档交付已提交 matrixorigin/matrixone-doc#374,更新 canonical 中英文四页,并替代已关闭的旧仓库 #723。

    文档包括 #29800 的 native UUIDv7、CTAS/predicate/CAST、混合值表达式和 swap flag 契约,并补齐 #29805 的 UUID_SHORT 边界。文档 PR 明确依赖 kernel #29805,应在其合并后合并。

    52 条 native SQL 语法检查、Markdown/YAML/内部链接、完整中英文 latest 构建、最终四页渲染检查均通过;固定 SQL 结果及 unsigned/public 路径有本地 -race 证据。gpt-6.1-sol / xhigh 方案和独立最终 QA PASS。生成 HTML 未提交,CI/合并/站点发布尚未计为完成。issue 保持开放等待文档 PR 合并,PR body 使用跨仓库关闭引用。

  3. jiangxinmeng1 commented on Oct 12, 2026

    @jiangxinmeng1
    Contributor

    文档相关内容已修复并发布到官网,中英文 UUID 文档已同步更新,包含 native UUIDv7、UUID_V1()、CTAS/CAST 以及兼容性说明。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/compatibilitykind/documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions