FWLamb commented on code in PR #4084:
URL:
https://github.com/apache/incubator-seatunnel/pull/4084#discussion_r1140052518
##########
seatunnel-core/seatunnel-spark-starter/seatunnel-spark-2-starter/src/main/java/org/apache/seatunnel/core/starter/spark/execution/TransformExecuteProcessor.java:
##########
@@ -125,6 +130,22 @@ private Dataset<Row> sparkTransform(SeaTunnelTransform
transform, Dataset<Row> s
transform.setTypeInfo(seaTunnelDataType);
StructType structType =
(StructType)
TypeConverterUtils.convert(transform.getProducedType());
+ StructField[] newStructFields =
Review Comment:
Modifications in TypeConverterUtils.convert may affect other modules.
The root cause of this problem is that for `TIMESTAMP` Type, the
`TimestampType` in spark is returned in `TypeConverterUtils.convert`, while the
`Long` Type is returned in `InternalRowConverter.convert`.
Inconsistent types cause spark to report an error.
--
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]