mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-02 07:40:30 +08:00
modify doc && fix length calculating
This commit is contained in:
parent
8ba8e4973b
commit
70a480f562
@ -67,7 +67,8 @@ DorisWriter 插件实现了写入数据到 Doris 主库的目的表的功能。
|
||||
"preSql": [],
|
||||
"postSql": [],
|
||||
"jdbcUrl": "jdbc:mysql://172.28.17.100:9030/",
|
||||
"loadUrl": ["172.28.17.100:8030", "172.28.17.100:8030"]
|
||||
"loadUrl": ["172.28.17.100:8030", "172.28.17.100:8030"],
|
||||
"loadProps": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -156,6 +157,14 @@ DorisWriter 插件实现了写入数据到 Doris 主库的目的表的功能。
|
||||
|
||||
* 默认值:无 <br />
|
||||
|
||||
* **loadProps**
|
||||
|
||||
* 描述:StreamLoad 的请求参数,详情参照StreamLoad介绍页面。 <br />
|
||||
|
||||
* 必选:否 <br />
|
||||
|
||||
* 默认值:无 <br />
|
||||
|
||||
|
||||
### 3.3 类型转换
|
||||
|
||||
|
@ -33,7 +33,7 @@ public class DorisWriterManager {
|
||||
try {
|
||||
buffer.add(record);
|
||||
batchCount++;
|
||||
batchSize += record.length();
|
||||
batchSize += record.getBytes().length;
|
||||
if (batchCount >= writerOptions.getBatchRows() || batchSize >= writerOptions.getBatchSize()) {
|
||||
flush(createBatchLabel());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user