Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-2293

Add Instant parameter type to withTimestamp method to avoid ms precision loss

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    Description

      Description

      TCK recordbuilder loose precision for java.sql.Timestamp which allow to exceed millisecond (nano seconds were not supported)
      https://github.com/Talend/component-runtime/blob/master/component-runtime-impl/src/main/java/org/talend/sdk/component/runtime/record/RecordImpl.java#L395

      We should update this method to not miss precision before using the API (record builder).

      Applied Solution

      Add Instant parameter type to withTimestamp method to avoid ms precision loss

      Attachments

        1. Screen Shot 2023-03-13 at 15.52.55.png
          268 kB
          Wei Wang
        2. Screen Shot 2023-03-13 at 15.57.02.png
          934 kB
          Wei Wang
        3. Screen Shot 2023-03-13 at 15.59.01.png
          199 kB
          Wei Wang
        4. Screen Shot 2023-03-13 at 16.00.34.png
          350 kB
          Wei Wang
        5. Screen Shot 2023-03-13 at 16.04.08.png
          748 kB
          Wei Wang

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wwang Wei Wang
              emmanuel gallois, Wei Wang, Yueyan Yin
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: