mirror of
https://github.com/alibaba/DataX.git
synced 2026-06-04 21:03:49 +08:00
fix:solve the problem of increasing or losing data in incremental situations
This commit is contained in:
parent
c1e34c96c4
commit
4554981133
File diff suppressed because one or more lines are too long
@ -80,8 +80,10 @@ public class TaskContext {
|
||||
}
|
||||
|
||||
public String getQuerySql() {
|
||||
if (readBatchSize == -1 || ObReaderUtils.isOracleMode(compatibleMode)) {
|
||||
if (readBatchSize == -1) {
|
||||
return querySql;
|
||||
} else if (ObReaderUtils.isOracleMode(compatibleMode)) {
|
||||
return String.format("select * from (%s) where rownum <= %d", querySql, readBatchSize);
|
||||
} else {
|
||||
return querySql + " limit " + readBatchSize;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user