mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-03 06:21:01 +08:00
change the linking charactor of stream load label
This commit is contained in:
parent
a1bf9baa3e
commit
0554bd1bea
@ -24,7 +24,7 @@ public class StarRocksWriterManager {
|
|||||||
|
|
||||||
private final StarRocksStreamLoadVisitor starrocksStreamLoadVisitor;
|
private final StarRocksStreamLoadVisitor starrocksStreamLoadVisitor;
|
||||||
private final StarRocksWriterOptions writerOptions;
|
private final StarRocksWriterOptions writerOptions;
|
||||||
private static final String UNDERSCORE = "_";
|
private static final String DOT = ".";
|
||||||
|
|
||||||
private final List<byte[]> buffer = new ArrayList<>();
|
private final List<byte[]> buffer = new ArrayList<>();
|
||||||
private int batchCount = 0;
|
private int batchCount = 0;
|
||||||
@ -123,12 +123,12 @@ public class StarRocksWriterManager {
|
|||||||
public String createBatchLabel() {
|
public String createBatchLabel() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
if (!Strings.isNullOrEmpty(writerOptions.getLabelPrefix())) {
|
if (!Strings.isNullOrEmpty(writerOptions.getLabelPrefix())) {
|
||||||
sb.append(writerOptions.getLabelPrefix()).append(UNDERSCORE);
|
sb.append(writerOptions.getLabelPrefix()).append(DOT);
|
||||||
}
|
}
|
||||||
return sb.append(writerOptions.getDatabase())
|
return sb.append(writerOptions.getDatabase())
|
||||||
.append(UNDERSCORE)
|
.append(DOT)
|
||||||
.append(writerOptions.getTable())
|
.append(writerOptions.getTable())
|
||||||
.append(UNDERSCORE)
|
.append(DOT)
|
||||||
.append(UUID.randomUUID().toString())
|
.append(UUID.randomUUID().toString())
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user