hudi-agent commented on code in PR #18585:
URL: https://github.com/apache/hudi/pull/18585#discussion_r3286828173


##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/client/utils/SparkValidatorUtils.java:
##########
@@ -83,7 +83,7 @@ public static void runValidators(HoodieWriteConfig config,
       Dataset<Row> afterState = getRecordsFromPendingCommits(sqlContext, 
partitionsModified, writeMetadata, table, instantTime);
       Dataset<Row> beforeState = getRecordsFromCommittedFiles(sqlContext, 
partitionsModified, table, afterState.schema());
 
-      Stream<SparkPreCommitValidator> validators = 
Arrays.stream(config.getPreCommitValidators().split(","))
+      List<SparkPreCommitValidator> validatorsList = 
Arrays.stream(config.getPreCommitValidators().split(","))

Review Comment:
   🤖 nit: `validatorsList` has a redundant `List` suffix — the type declaration 
already makes it a `List`. Could you rename it to just `validators`?
   
   <sub><i>- AI-generated; verify before applying. React 👍/👎 to flag 
quality.</i></sub>



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