alibaba / alibaba/DataX

OriginalConfPretreatmentUtil.recognizeTableOrQuerySqlMode 263行检查混合模式是不是代码写错了

Open
#490 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

// 混合配制 table 和 querySql
if (!ListUtil.checkIfValueSame(tableModeFlags)
|| !ListUtil.checkIfValueSame(tableModeFlags)) {
throw DataXException.asDataXException(DBUtilErrorCode.TABLE_QUERYSQL_MIXED,
"您配置凌乱了. 不能同时既配置table又配置querySql. 请检查您的配置并作出修改.");
}

return tableModeFlags.get(0);

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in OriginalConfPretreatmentUtil.recognizeTableOrQuerySqlMode at line 263 and inspect how the table and querySql mode flags are assembled. Compare the mixed-mode validation with the surrounding configuration logic, then run the relevant existing tests and confirm that valid table or querySql configurations still pass while mixed configurations are rejected.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
data-engineering
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.