hk-lrzy commented on code in PR #2938:
URL: 
https://github.com/apache/incubator-seatunnel/pull/2938#discussion_r983087853


##########
seatunnel-translation/seatunnel-translation-base/src/main/java/org/apache/seatunnel/translation/serialization/RowConverter.java:
##########
@@ -80,8 +82,9 @@ protected boolean validate(Object field, SeaTunnelDataType<?> 
dataType) {
             case STRING:
             case DECIMAL:
             case BYTES:
-            case ARRAY:
                 return dataType.getTypeClass() == field.getClass();
+            case ARRAY:
+                return 
ClassUtils.wrapperToPrimitive(dataType.getTypeClass().getComponentType()) == 
field.getClass().getComponentType();

Review Comment:
   No, it will compare the element class type i think?



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