<?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 CDF/Nifi error with Date field and PutIceberg processor in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/CDF-Nifi-error-with-Date-field-and-PutIceberg-processor/m-p/378290#M243498</link>
    <description>&lt;P&gt;I have a flow that queries data from a source table and loads it into an iceberg table. The source data includes a Date type which gets read in as a string. The destination table has the same field where the schema is also a Date. When I try to use the PutIceberg processor, I get the following error:&lt;/P&gt;&lt;PRE&gt;org.apache.nifi.serialization.record.util.IllegalTypeConversionException: &lt;BR /&gt;Failed Conversion of Field [null] from String [2023-10-30] to LocalDate
- Caused by: java.lang.NumberFormatException&lt;/PRE&gt;&lt;P&gt;The flow file is Avro and I'm using an AvroReader service for the PutIceberg. Here's a sample of the Avro:&lt;/P&gt;&lt;PRE&gt;[ {&lt;BR /&gt;"scan_id" : "1698665963-82DD686DBC1979E6FF6C5443BA82456621DB5004",&lt;BR /&gt;"queue_seq_id" : 558745163,&lt;BR /&gt;"flight_airline_code" : "AC",&lt;BR /&gt;"flight_number" : 8663,&lt;BR /&gt;"flight_departure_date" : "2023-10-30",&lt;BR /&gt;"scan_airport_code" : "YHZ",&lt;BR /&gt;"scan_checkpoint_name" : "Transborder",&lt;BR /&gt;"scan_stage_name" : "S2 - Screening Lines",&lt;BR /&gt;"manual_entry" : "N",&lt;BR /&gt;"wait_time_pax_queue" : "Main Queue",&lt;BR /&gt;"wait_time_seconds" : 93,&lt;BR /&gt;"included_in_counts" : "Y",&lt;BR /&gt;"insert_time" : "2023-10-30 13:44:39.0",&lt;BR /&gt;"scan_time" : "2023-10-30 11:39:23.0",&lt;BR /&gt;"scan_hour" : 11,&lt;BR /&gt;"scan_year" : 2023,&lt;BR /&gt;"scan_month" : 10,&lt;BR /&gt;"scan_day" : 30&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;The issue seems to be the 'flight_departure_date' field. Strangely enough, I have another flow that does essentially the exact same thing and I've had no issues with it there.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 06:46:53 GMT</pubDate>
    <dc:creator>ipson</dc:creator>
    <dc:date>2026-04-21T06:46:53Z</dc:date>
    <item>
      <title>CDF/Nifi error with Date field and PutIceberg processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDF-Nifi-error-with-Date-field-and-PutIceberg-processor/m-p/378290#M243498</link>
      <description>&lt;P&gt;I have a flow that queries data from a source table and loads it into an iceberg table. The source data includes a Date type which gets read in as a string. The destination table has the same field where the schema is also a Date. When I try to use the PutIceberg processor, I get the following error:&lt;/P&gt;&lt;PRE&gt;org.apache.nifi.serialization.record.util.IllegalTypeConversionException: &lt;BR /&gt;Failed Conversion of Field [null] from String [2023-10-30] to LocalDate
- Caused by: java.lang.NumberFormatException&lt;/PRE&gt;&lt;P&gt;The flow file is Avro and I'm using an AvroReader service for the PutIceberg. Here's a sample of the Avro:&lt;/P&gt;&lt;PRE&gt;[ {&lt;BR /&gt;"scan_id" : "1698665963-82DD686DBC1979E6FF6C5443BA82456621DB5004",&lt;BR /&gt;"queue_seq_id" : 558745163,&lt;BR /&gt;"flight_airline_code" : "AC",&lt;BR /&gt;"flight_number" : 8663,&lt;BR /&gt;"flight_departure_date" : "2023-10-30",&lt;BR /&gt;"scan_airport_code" : "YHZ",&lt;BR /&gt;"scan_checkpoint_name" : "Transborder",&lt;BR /&gt;"scan_stage_name" : "S2 - Screening Lines",&lt;BR /&gt;"manual_entry" : "N",&lt;BR /&gt;"wait_time_pax_queue" : "Main Queue",&lt;BR /&gt;"wait_time_seconds" : 93,&lt;BR /&gt;"included_in_counts" : "Y",&lt;BR /&gt;"insert_time" : "2023-10-30 13:44:39.0",&lt;BR /&gt;"scan_time" : "2023-10-30 11:39:23.0",&lt;BR /&gt;"scan_hour" : 11,&lt;BR /&gt;"scan_year" : 2023,&lt;BR /&gt;"scan_month" : 10,&lt;BR /&gt;"scan_day" : 30&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;The issue seems to be the 'flight_departure_date' field. Strangely enough, I have another flow that does essentially the exact same thing and I've had no issues with it there.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 06:46:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDF-Nifi-error-with-Date-field-and-PutIceberg-processor/m-p/378290#M243498</guid>
      <dc:creator>ipson</dc:creator>
      <dc:date>2026-04-21T06:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: CDF/Nifi error with Date field and PutIceberg processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDF-Nifi-error-with-Date-field-and-PutIceberg-processor/m-p/378291#M243499</link>
      <description>&lt;P&gt;Resolved. The issue was that I was using an ExecuteSQL processor before the PutIceberg processor and I neglected to use logical types. The fix was to switch the property 'Use Avro Logical Types' to&amp;nbsp;&lt;STRONG&gt;true.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 14:48:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDF-Nifi-error-with-Date-field-and-PutIceberg-processor/m-p/378291#M243499</guid>
      <dc:creator>ipson</dc:creator>
      <dc:date>2023-10-30T14:48:13Z</dc:date>
    </item>
  </channel>
</rss>

