<?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>topic Parquet file for delta streaming live table with pipeline in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/parquet-file-for-delta-streaming-live-table-with-pipeline/m-p/112979#M44381</link>
    <description>&lt;DIV class=""&gt;I am having an issue with parquet files:&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;I'm getting&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Illegal Parquet type: INT64 (TIMESTAMP(NANOS,false))&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;error while trying to read a parquet file (generated outside of DataBricks).&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;I am using a Delta streaming live table with a pipeline.&amp;nbsp; If I remove the one file the pipeline works fine.&amp;nbsp; I can use Pandas in Python can open this file just fine.&amp;nbsp; Any ideas on how to address this with a pipeline based on a notebook with a single cell&amp;nbsp; create streaming live table ....&amp;nbsp; &amp;nbsp; I've seen I can add this:&amp;nbsp;spark.conf.set("spark.sql.legacy.parquet.nanosAsLong", "true")&amp;nbsp; If using spark directly.&amp;nbsp; Not sure on how to affect the abstraction of this loading using the delta streaming live table.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Any help appreciated&lt;/DIV&gt;</description>
    <pubDate>Tue, 18 Mar 2025 21:26:50 GMT</pubDate>
    <dc:creator>ClarkElliott</dc:creator>
    <dc:date>2025-03-18T21:26:50Z</dc:date>
    <item>
      <title>Parquet file for delta streaming live table with pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/parquet-file-for-delta-streaming-live-table-with-pipeline/m-p/112979#M44381</link>
      <description>&lt;DIV class=""&gt;I am having an issue with parquet files:&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;I'm getting&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Illegal Parquet type: INT64 (TIMESTAMP(NANOS,false))&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;error while trying to read a parquet file (generated outside of DataBricks).&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;I am using a Delta streaming live table with a pipeline.&amp;nbsp; If I remove the one file the pipeline works fine.&amp;nbsp; I can use Pandas in Python can open this file just fine.&amp;nbsp; Any ideas on how to address this with a pipeline based on a notebook with a single cell&amp;nbsp; create streaming live table ....&amp;nbsp; &amp;nbsp; I've seen I can add this:&amp;nbsp;spark.conf.set("spark.sql.legacy.parquet.nanosAsLong", "true")&amp;nbsp; If using spark directly.&amp;nbsp; Not sure on how to affect the abstraction of this loading using the delta streaming live table.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Any help appreciated&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Mar 2025 21:26:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/parquet-file-for-delta-streaming-live-table-with-pipeline/m-p/112979#M44381</guid>
      <dc:creator>ClarkElliott</dc:creator>
      <dc:date>2025-03-18T21:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Parquet file for delta streaming live table with pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/parquet-file-for-delta-streaming-live-table-with-pipeline/m-p/121516#M46471</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/154100"&gt;@ClarkElliott&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good day!!&lt;/P&gt;
&lt;H1 id="cause-1" data-toc="true"&gt;Cause&lt;/H1&gt;
&lt;P&gt;Databricks Runtime versions 11.3 LTS and above do not support the&amp;nbsp;&lt;CODE&gt;TIMESTAMP_NANOS&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;type in open source Apache Spark and Databricks Runtime. If a Parquet file contains fields with the&amp;nbsp;&lt;CODE&gt;TIMESTAMP_NANOS&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;type, attempts to read it will fail with an&amp;nbsp;&lt;CODE&gt;Illegal Parquet Type&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;exception. As a result, schema inference will also fail, since Spark cannot interpret the unsupported timestamp type.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To restore the behavior before Spark 3.2, you can set spark.sql.legacy.parquet.nanosAsLong to true.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Reference&lt;/STRONG&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;A href="https://spark.apache.org/docs/4.0.0/sql-migration-guide.html#upgrading-from-spark-sql-31-to-32:~:text=To%20restore%20the%20behavior%20before%20Spark%203.2%2C%20you%20can%20set%20spark.sql.legacy.parquet.nanosAsLong%20to%20true" target="_blank"&gt;https://spark.apache.org/docs/4.0.0/sql-migration-guide.html#upgrading-from-spark-sql-31-to-32:~:text=To%20restore%20the%20behavior%20before%20Spark%203.2%2C%20you%20can%20set%20spark.sql.legacy.parquet.nanosAsLong%20to%20true&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;You can add the below configuration to the DLT pipeline settings.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;spark.sql.legacy.parquet.nanosAsLong true&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="User16753724399_0-1749663300233.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17470i1AEC2C64C4524741/image-size/medium?v=v2&amp;amp;px=400" role="button" title="User16753724399_0-1749663300233.png" alt="User16753724399_0-1749663300233.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Kindly let me know if you have any questions on this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 17:39:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/parquet-file-for-delta-streaming-live-table-with-pipeline/m-p/121516#M46471</guid>
      <dc:creator>Saritha_S</dc:creator>
      <dc:date>2025-06-11T17:39:34Z</dc:date>
    </item>
  </channel>
</rss>

