You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/09/05 10:07:44 UTC

[GitHub] [incubator-seatunnel] laglangyue commented on pull request #2637: [Bug][Translation] fix data,time,timestamp convert for spark

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: ***@***.***&gt;
   Date: Mon, Sep 5, 2022 10:59 AM
   To: ***@***.***&gt;;
   Cc: ***@***.******@***.***&gt;;
   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:
    &gt;              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: ***@***.***&gt;


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