kyehe commented on code in PR #3734:
URL:
https://github.com/apache/incubator-seatunnel/pull/3734#discussion_r1056007036
##########
seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/sink/writer/AbstractWriteStrategy.java:
##########
@@ -107,6 +108,10 @@ public void write(SeaTunnelRow seaTunnelRow) throws
FileConnectorException {
if (currentBatchSize >= batchSize) {
this.partId++;
currentBatchSize = 0;
+ if (beingWrittenFile.size() == 1) {
Review Comment:
> Seem like you want find filePath belong to this seatunnelRow, maybe you
can move this logic to `OrcWriteStrategy`, because only `OrcWriteStrategy` use
`writtenFileStatusMap`. Also you can change `writtenFileStatusMap` to hashset,
because value alway be true.
yes, I will make some code update and recommit it in this weekend.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]