Skip to content

修复 MySQL 元数据解析报错 - #1119

Merged
hustcc merged 1 commit into
aifrom
codex/fix-mysql-schema-metadata
Nov 17, 2026
Merged

hustcc merged 1 commit into
aifrom
codex/fix-mysql-schema-metadata

Conversation

@yvonneyx

@yvonneyx yvonneyx commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

MySQL 的元数据查询可能返回 BLOB,导致 ava.schema() 解析 JSON 失败。现在在 MySQL 端把元数据转为 UTF-8 文本。

  • MySQL 8.0.30、8.4.11 的 schema 和 profile 测试通过。
  • MySQL 5.7.44、MariaDB 11.4.13 的 schema 验证通过。
  • TiDB 8.5.7 在 WARN 模式下通过 schema 验证。默认配置仍会拒绝只读事务。
  • TypeScript 构建和 lint 通过。

Fixes #1116

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ Preview is ready!

PR preview ✅ Ready ✅ Ready
🔗 Preview https://antvis-AVA-preview-pr-1119.surge.sh
📝 Commit4d37eaa
⏱️ Build time0.009s
📦 Size30.3 MB · 460 files
🪵 LogsView logs
📱 MobileScan to open preview on mobile

↩️ Previous: ⚡️ 4d37eaa · antvis-AVA-preview-pr-1119.surge.sh (open ↗) · 2026-11-17 03:23:46 UTC

🤖 Powered by surge-preview

@yvonneyx yvonneyx changed the title fix(mysql): return catalog metadata as UTF-8 text 修复 MySQL 元数据解析报错 Nov 17, 2026
@hustcc
hustcc merged commit 6a11c8c into ai Nov 17, 2026
4 checks passed
@hustcc
hustcc deleted the codex/fix-mysql-schema-metadata branch November 17, 2026 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

【BUG】util/schema.js 的 JSON.parse(row.metadata) 失败, MySQL 8.0.30 + AVA 4.0.3 。

2 participants