DTStack / DTStack/chunjun

chunjun-connect-jdbc-base:JdbcUtil:getTableMetaData:mysql不同版本构建报错

Open
#1,458 1 comment 0 reactions 1 assignee Claimed by @shak790995801 View on GitHub
bug
Dominant language
Java
Stars
4.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### Search before asking

- [X] I had searched in the [issues](https://github.com/DTStack/chunjun/issues) and found no similar issues.

### What happened

chunjun版本:1.12-SNAPSHOT,maridb5.5报错,构建任务就报错。获取不到元数据

### What you expected to happen

构建任务时就报错

### How to reproduce

querySql = String.format("select * from ((%s) custom) where 1=2", querySql);
修改成:
querySql = String.format("select * from (%s ) temp where 1=2", querySql);
169行,

### Anything else

querySql = String.format("select * from ((%s) custom) where 1=2", querySql);
修改成:
querySql = String.format("select * from (%s ) temp where 1=2", querySql);
169行,

### Version

1.12_release

### Are you willing to submit PR?

- [X] Yes I am willing to submit a PR!

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.