corgy-w commented on code in PR #9096: URL: https://github.com/apache/seatunnel/pull/9096#discussion_r2023004119
########## seatunnel-connectors-v2/connector-starrocks/src/test/java/org/apache/seatunnel/connectors/seatunnel/starrocks/serialize/StarRocksJsonSerializerTest.java: ########## @@ -27,30 +28,46 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; +import java.time.format.DateTimeFormatterBuilder; +import java.time.temporal.ChronoField; import java.util.Collections; public class StarRocksJsonSerializerTest { + private DateTimeFormatter dateTimeFormatter = + new DateTimeFormatterBuilder() + .appendPattern("yyyy-MM-dd HH:mm:ss") + .optionalStart() + .appendFraction(ChronoField.NANO_OF_SECOND, 0, 9, true) + .toFormatter(); + @Test public void serialize() { - String[] filedNames = {"id", "name", "array", "map"}; + String[] filedNames = {"id", "name", "array", "map", "timestamp"}; SeaTunnelDataType<?>[] filedTypes = { Review Comment: word is wrong, cry:< -- 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-unsubscr...@seatunnel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org