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


##########
hudi-common/src/test/java/org/apache/hudi/avro/TestHoodieAvroUtils.java:
##########
@@ -450,10 +450,8 @@ public void testGenerateProjectionSchema() {
     assertTrue(fieldNames1.contains("_row_key"));
     assertTrue(fieldNames1.contains("timestamp"));
 
-    assertEquals("Field fake_field not found in log schema. Query cannot 
proceed! Derived Schema Fields: "
-            + "[non_pii_col, _hoodie_commit_time, _row_key, 
_hoodie_partition_path, _hoodie_record_key, pii_col,"
-            + " _hoodie_commit_seqno, _hoodie_file_name, timestamp]",
-        assertThrows(HoodieException.class, () ->
-            HoodieAvroUtils.generateProjectionSchema(originalSchema, 
Arrays.asList("_row_key", "timestamp", "fake_field"))).getMessage());
+    assertTrue(assertThrows(HoodieException.class, () ->
+            HoodieAvroUtils.generateProjectionSchema(originalSchema, 
Arrays.asList("_row_key", "timestamp", "fake_field")))
+        .getMessage().contains("Field fake_field not found in log schema. 
Query cannot proceed!"));

Review Comment:
   Got it



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