You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "laglangyue (via GitHub)" <gi...@apache.org> on 2023/04/23 15:17:30 UTC

[GitHub] [incubator-seatunnel] laglangyue commented on a diff in pull request #4490: [Improve][Transform] Optimize SQL Transform package and Fix Spark type conversion bug of transform

laglangyue commented on code in PR #4490:
URL: https://github.com/apache/incubator-seatunnel/pull/4490#discussion_r1174598742


##########
seatunnel-translation/seatunnel-translation-spark/seatunnel-translation-spark-3.3/src/main/java/org/apache/seatunnel/translation/spark/serialization/InternalRowConverter.java:
##########
@@ -241,4 +244,26 @@ private static Object reconvertArray(ArrayData arrayData, ArrayType<?, ?> arrayT
         }
         return newArray;
     }
+
+    public Object[] convertToFields(InternalRow internalRow, StructType structType) {

Review Comment:
   if the method not support array or map, it will cause exception when handler array / map



-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org