<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Timestamp migration issue, PutDatabaseRecord drops milliseconds in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Timestamp-migration-issue-PutDatabaseRecord-drops/m-p/351765#M236364</link>
    <description>&lt;P&gt;After fetching from the first DB, you can convert each record to json, the use evaluatejsonpath to extract the timestamp as attribute. then use updateAttribute processor to update timestamp attribute you extracted earlier: Let's say on&amp;nbsp;evaluatejsonpath, the extracted timestamp attribute is "dTime". Then , on&amp;nbsp;updateAttribute, you create same atttribute and set&amp;nbsp;dTime value to&amp;nbsp;${dTime:toDate("yyyy-MM-dd hh:mm:ss"):format("yyyy-MM-dd hh:mm:ss.SSSSSS")}&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 11:02:50 GMT</pubDate>
    <dc:creator>rafy</dc:creator>
    <dc:date>2022-09-08T11:02:50Z</dc:date>
    <item>
      <title>Timestamp migration issue, PutDatabaseRecord drops milliseconds</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Timestamp-migration-issue-PutDatabaseRecord-drops/m-p/351157#M236173</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I have a pipeline that reads data from Postgres database and putts in to another Postgres database unchanged, I need the data to be identical, however Timestamps after being migrated missing microseconds.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2022-08-29 22:03:13.620961-05 -&amp;gt; Source&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2022-08-29 22:03:13-05 -&amp;gt; Target&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have noticed that flow files contain correct format before reaching PutDatabaseRecord processor, but then on Target database microseconds are gone.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you please help me to understand how I can migrate timestamps with the microseconds?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 13:33:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Timestamp-migration-issue-PutDatabaseRecord-drops/m-p/351157#M236173</guid>
      <dc:creator>Mark06</dc:creator>
      <dc:date>2022-08-30T13:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp migration issue, PutDatabaseRecord drops milliseconds</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Timestamp-migration-issue-PutDatabaseRecord-drops/m-p/351765#M236364</link>
      <description>&lt;P&gt;After fetching from the first DB, you can convert each record to json, the use evaluatejsonpath to extract the timestamp as attribute. then use updateAttribute processor to update timestamp attribute you extracted earlier: Let's say on&amp;nbsp;evaluatejsonpath, the extracted timestamp attribute is "dTime". Then , on&amp;nbsp;updateAttribute, you create same atttribute and set&amp;nbsp;dTime value to&amp;nbsp;${dTime:toDate("yyyy-MM-dd hh:mm:ss"):format("yyyy-MM-dd hh:mm:ss.SSSSSS")}&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 11:02:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Timestamp-migration-issue-PutDatabaseRecord-drops/m-p/351765#M236364</guid>
      <dc:creator>rafy</dc:creator>
      <dc:date>2022-09-08T11:02:50Z</dc:date>
    </item>
  </channel>
</rss>

