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


##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/client/validator/SqlQuerySingleResultPreCommitValidator.java:
##########
@@ -68,9 +68,9 @@ protected void validateUsingQuery(String query, String 
prevTableSnapshot, String
     }
     Object result = newRows.get(0).apply(0);
     if (result == null || !expectedResult.equals(result.toString())) {
-      LOG.error("Mismatch query result. Expected: " + expectedResult + " got " 
+ result + "Query: " + query);
+      LOG.error("Mismatch query result. Expected: " + expectedResult + " got " 
+ result + " on Query: " + query);
       throw new HoodieValidationException("Query validation failed for '" + 
query
-          + "'. Expected " + expectedResult + " rows, Found " + result);
+          + "'. Expected " + expectedResult + " row, Found " + result);

Review Comment:
   ```suggestion
             + "'. Expected " + expectedResult + " row(s), Found " + result);
   ```



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