<?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: AVRO timestamp parsing in Nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/AVRO-timestamp-parsing-in-Nifi/m-p/412530#M253519</link>
    <description>&lt;P&gt;Reading back my post I didn't explain it very well.&lt;/P&gt;&lt;P&gt;When I output a timestamp field using a&amp;nbsp;FreeFormTextRecordSetWriter the field is implicitly converted to a string of format&amp;nbsp;YYYY-mm-DD HH:MM:SS. I cannot see any way to change this behaviour and all my searches turn up blank. What I want is the Writer to respect the original long value.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Sep 2025 16:22:52 GMT</pubDate>
    <dc:creator>agriff</dc:creator>
    <dc:date>2025-09-29T16:22:52Z</dc:date>
    <item>
      <title>AVRO timestamp parsing in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AVRO-timestamp-parsing-in-Nifi/m-p/412521#M253513</link>
      <description>&lt;P&gt;Hitting a weird issue in Nifi that I can't get my head around.&lt;/P&gt;&lt;P&gt;I am consuming AVRO records from Kafka with a timestamp field. The definition is&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    {
      "name" : "timestamp",
      "type" : {
        "type" : "long",
        "logicalType" : "timestamp-millis"
      }
    },&lt;/LI-CODE&gt;&lt;P&gt;If I use a JSON record writer then in the queue viewer I can see the field contains the original long value. However if I use an AVRO writer the field is formatted as a date/time value, e.g.&amp;nbsp;2025-09-26T15:29:44.466Z.&lt;/P&gt;&lt;P&gt;I assumed this was just pretty-printing in the queue viewer. But if I then send those flowfiles to a ConvertRecord process with an AVRO reader and a FreeText writer the timestamp field is now displayed as YYYY-mm-DD HH:MM:SS. Which means I've lost precision and I need to use expression language to re-parse the field to convert it back to a long value.&lt;/P&gt;&lt;P&gt;So, I'm forced to us JSON as the intermediary format. If I use AVRO I loose precision.&lt;/P&gt;&lt;P&gt;This is Nifi 2.5.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2025 15:56:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AVRO-timestamp-parsing-in-Nifi/m-p/412521#M253513</guid>
      <dc:creator>agriff</dc:creator>
      <dc:date>2025-09-26T15:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: AVRO timestamp parsing in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AVRO-timestamp-parsing-in-Nifi/m-p/412530#M253519</link>
      <description>&lt;P&gt;Reading back my post I didn't explain it very well.&lt;/P&gt;&lt;P&gt;When I output a timestamp field using a&amp;nbsp;FreeFormTextRecordSetWriter the field is implicitly converted to a string of format&amp;nbsp;YYYY-mm-DD HH:MM:SS. I cannot see any way to change this behaviour and all my searches turn up blank. What I want is the Writer to respect the original long value.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 16:22:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AVRO-timestamp-parsing-in-Nifi/m-p/412530#M253519</guid>
      <dc:creator>agriff</dc:creator>
      <dc:date>2025-09-29T16:22:52Z</dc:date>
    </item>
  </channel>
</rss>

