Davis-Zhang-Onehouse commented on code in PR #11265:
URL: https://github.com/apache/hudi/pull/11265#discussion_r1608801275


##########
hudi-common/src/test/java/org/apache/hudi/avro/TestMercifulJsonConverter.java:
##########
@@ -55,6 +70,649 @@ public void basicConversion() throws IOException {
     Assertions.assertEquals(rec, CONVERTER.convert(json, simpleSchema));
   }
 
+  private static final String DECIMAL_AVRO_FILE_INVALID_PATH = 
"/decimal-logical-type-invalid.avsc";
+  private static final String DECIMAL_AVRO_FILE_PATH = 
"/decimal-logical-type.avsc";
+  private static final String DECIMAL_FIXED_AVRO_FILE_PATH = 
"/decimal-logical-type-fixed-type.avsc";
+  /**
+   * Covered case:
+   * Avro Logical Type: Decimal
+   * Exhaustive unsupported input coverage.
+   */
+  @ParameterizedTest
+  @MethodSource("decimalBadCases")
+  void decimalLogicalTypeInvalidCaseTest(String avroFile, String strInput, 
Double numInput,

Review Comment:
   Yes, @the-other-tim-brown has confirmed on the type of logical types that we 
support. Test achieves at least 95% of branch coverage
   
   For the code porting, it is replied in the previous thread.



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