Skip to content

fix(mysql): add FROM to batch read query - #877

Closed
HarsenLin wants to merge 1 commit into
developfrom
fix/mysql-batch-read-quote
Closed

fix(mysql): add FROM to batch read query#877
HarsenLin wants to merge 1 commit into
developfrom
fix/mysql-batch-read-quote

Conversation

@HarsenLin

Copy link
Copy Markdown
Contributor

问题

当 MySQL 表字段数超过 50 时,批量读取 SQL 缺少 FROM,会生成无效语句并触发 source_batch_read 自动重试。

修改

补齐 SELECT * FROM <schema.table> 中的 FROM,并增加带 schema 与反引号转义的回归断言。

验证

  • mvn -pl connectors/mysql-connector -am -Dtest='MysqlConnectorTest$BatchReadSqlTest#testFieldSizeLargeThen50' -DfailIfNoTests=false -Dsurefire.failIfNoSpecifiedTests=false -Dmaven.gitcommitid.skip=true -Djacoco.skip=true -Dnet.bytebuddy.experimental=true test
  • 结果:1 个定向用例通过,完整 reactor 构建成功。

@HarsenLin HarsenLin closed this Aug 25, 2026
@HarsenLin
HarsenLin deleted the fix/mysql-batch-read-quote branch August 25, 2026 12:02
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.

1 participant