mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-02 05:11:42 +08:00
remove db and table info from stream load label
This commit is contained in:
parent
721ed5136d
commit
d722f302eb
@ -24,7 +24,6 @@ public class StarRocksWriterManager {
|
||||
|
||||
private final StarRocksStreamLoadVisitor starrocksStreamLoadVisitor;
|
||||
private final StarRocksWriterOptions writerOptions;
|
||||
private static final String HYPHEN = "-";
|
||||
|
||||
private final List<byte[]> buffer = new ArrayList<>();
|
||||
private int batchCount = 0;
|
||||
@ -123,13 +122,9 @@ public class StarRocksWriterManager {
|
||||
public String createBatchLabel() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (!Strings.isNullOrEmpty(writerOptions.getLabelPrefix())) {
|
||||
sb.append(writerOptions.getLabelPrefix()).append(HYPHEN);
|
||||
sb.append(writerOptions.getLabelPrefix());
|
||||
}
|
||||
return sb.append(writerOptions.getDatabase())
|
||||
.append(HYPHEN)
|
||||
.append(writerOptions.getTable())
|
||||
.append(HYPHEN)
|
||||
.append(UUID.randomUUID().toString())
|
||||
return sb.append(UUID.randomUUID().toString())
|
||||
.toString();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user