yihua commented on code in PR #13844:
URL: https://github.com/apache/hudi/pull/13844#discussion_r2328423251


##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/streamer/HoodieStreamerUtils.java:
##########
@@ -118,7 +119,7 @@ public static Option<JavaRDD<HoodieRecord>> 
createHoodieRecords(HoodieStreamer.C
                   if (shouldErrorTable) {
                     Schema schema = genRec.getSchema();
                     if (!GenericData.get().validate(schema, genRec)) {
-                      throw new HoodieException("The record does not match the 
schema: " + schema);
+                      throw new HoodieIOException("The record to be serialized 
does not match the schema: " + schema);

Review Comment:
   New tests are added to cover the logic.



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