yzeng1618 commented on code in PR #10450:
URL: https://github.com/apache/seatunnel/pull/10450#discussion_r2887122998
##########
seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/source/reader/CsvReadStrategy.java:
##########
@@ -106,13 +106,14 @@ public void readProcess(
currentFileName,
split.getStart(),
split.getLength());
+ final boolean useSplitRead = enableSplitFile && split.getLength() > -1;
Review Comment:
Good point, fixed. I extracted the repeated split-read condition into a
helper method in CsvReadStrategy and replaced duplicated checks.
--
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]