mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-02 16:02:37 +08:00
mongodb2tdengine check records count before flush
This commit is contained in:
parent
ca1851fb99
commit
75d4f7e101
@ -218,7 +218,11 @@ public class JDBCBatchWriter {
|
||||
break;
|
||||
}
|
||||
}
|
||||
initFiledTypesAndTargetTable(records);
|
||||
if (records.size() > 0) {
|
||||
initFiledTypesAndTargetTable(records);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
for (String tabName : buf.keySet()) {
|
||||
if (buf.get(tabName).size() > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user