mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-03 03:59:07 +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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
initFiledTypesAndTargetTable(records);
|
if (records.size() > 0) {
|
||||||
|
initFiledTypesAndTargetTable(records);
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for (String tabName : buf.keySet()) {
|
for (String tabName : buf.keySet()) {
|
||||||
if (buf.get(tabName).size() > 0) {
|
if (buf.get(tabName).size() > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user