laglangyue commented on PR #2637:
URL:
https://github.com/apache/incubator-seatunnel/pull/2637#issuecomment-1236801818
I will fix it so that we can get 1/1000_000 of secend
---Original---
From: ***@***.***>
Date: Mon, Sep 5, 2022 10:59 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [apache/incubator-seatunnel] [Bug][Translation]
fixdata,time,timestamp convert for spark (PR #2637)
@liugddx commented on this pull request.
In
seatunnel-translation/seatunnel-translation-spark/seatunnel-translation-spark-common/src/main/java/org/apache/seatunnel/translation/spark/common/serialization/InternalRowConverter.java:
> case TIMESTAMP: - return ((Timestamp)
field).toLocalDateTime(); + return
LocalDateTime.ofInstant(Instant.ofEpochMilli((long) field), ZONE_UTC);
Can the accuracy of TimesStamp accurately be precise?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
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]