chl-wxp commented on code in PR #10450:
URL: https://github.com/apache/seatunnel/pull/10450#discussion_r2883057308


##########
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:
   This line of code seems to appear many times. Try to reduce code redundancy.



-- 
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]

Reply via email to