alibaba / alibaba/DataX

检查RDBMS配置项时,存在逻辑错误

Open
#104 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17.4k
Forks
5.7k
PR merge metrics
No merged PRs in 30d

Description

module: plugin-rdbms-util
class: com.alibaba.datax.plugin.rdbms.reader.util.OriginalConfPretreatmentUtil
line 263 ~ 267
code:
```java
1. if (!ListUtil.checkIfValueSame(tableModeFlags)
2. || !ListUtil.checkIfValueSame(tableModeFlags)) {
3. throw DataXException.asDataXException(DBUtilErrorCode.TABLE_QUERYSQL_MIXED,
4. "您配置凌乱了. 不能同时既配置table又配置querySql. 请检查您的配置并作出修改.");
5. }
```
此处行2的检查应该是`querySqlModeFlags`,否则无法正确提示存在不同querySql的connection配置

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in plugin-rdbms-util at com.alibaba.datax.plugin.rdbms.reader.util.OriginalConfPretreatmentUtil, around lines 263-267, and compare the two checks with the surrounding table and querySql configuration handling. Done means the validation checks the intended querySql flags and correctly detects inconsistent querySql connection configuration; run the relevant RDBMS reader tests if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.