<?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 Re: cannot convert Parquet type INT64 to Photon type double in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/cannot-convert-parquet-type-int64-to-photon-type-double/m-p/16388#M10582</link>
    <description>&lt;P&gt;hey @Andrew Fogarty​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also faced the same issue when I moved from the 7.3 LTS version to a higher runtime version so to mitigate this issue you can use the below cluster configuration &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;spark.sql.storeAssignmentPolicy LEGACY&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;spark.sql.parquet.binaryAsString true&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;spark.speculation false&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;spark.sql.legacy.timeParserPolicy LEGACY&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a detailed explanation of the above configuration please use this doc. this is really helpful to debug most of your errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spark configuration link- &lt;A href="https://spark.apache.org/docs/latest/configuration.html" target="test_blank"&gt;https://spark.apache.org/docs/latest/configuration.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you like my answer please upvote it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aviral Bhardwaj&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2022 15:00:59 GMT</pubDate>
    <dc:creator>Aviral-Bhardwaj</dc:creator>
    <dc:date>2022-12-16T15:00:59Z</dc:date>
    <item>
      <title>cannot convert Parquet type INT64 to Photon type double</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-convert-parquet-type-int64-to-photon-type-double/m-p/16387#M10581</link>
      <description>&lt;P&gt;I am trying to read in files via the COPY INTO command but I am getting this error lately for a certain subset of the data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;`Error while reading file: Schema conversion error: cannot convert Parquet type INT64 to Photon type double`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are my options; I have tried with a mixture of mergeSchema and overwriteSchema&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What might I do to make this more reliable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;              FILEFORMAT = PARQUET
              FORMAT_OPTIONS ('overwriteSchema' = 'true')
              COPY_OPTIONS ('overwriteSchema' = 'true', 'overwrite' = 'true')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 13:30:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-convert-parquet-type-int64-to-photon-type-double/m-p/16387#M10581</guid>
      <dc:creator>auser85</dc:creator>
      <dc:date>2022-12-16T13:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: cannot convert Parquet type INT64 to Photon type double</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-convert-parquet-type-int64-to-photon-type-double/m-p/16388#M10582</link>
      <description>&lt;P&gt;hey @Andrew Fogarty​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also faced the same issue when I moved from the 7.3 LTS version to a higher runtime version so to mitigate this issue you can use the below cluster configuration &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;spark.sql.storeAssignmentPolicy LEGACY&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;spark.sql.parquet.binaryAsString true&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;spark.speculation false&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;spark.sql.legacy.timeParserPolicy LEGACY&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a detailed explanation of the above configuration please use this doc. this is really helpful to debug most of your errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spark configuration link- &lt;A href="https://spark.apache.org/docs/latest/configuration.html" target="test_blank"&gt;https://spark.apache.org/docs/latest/configuration.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you like my answer please upvote it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aviral Bhardwaj&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 15:00:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-convert-parquet-type-int64-to-photon-type-double/m-p/16388#M10582</guid>
      <dc:creator>Aviral-Bhardwaj</dc:creator>
      <dc:date>2022-12-16T15:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: cannot convert Parquet type INT64 to Photon type double</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-convert-parquet-type-int64-to-photon-type-double/m-p/16389#M10583</link>
      <description>&lt;P&gt;Thanks, will check it out!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 15:19:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-convert-parquet-type-int64-to-photon-type-double/m-p/16389#M10583</guid>
      <dc:creator>auser85</dc:creator>
      <dc:date>2022-12-16T15:19:18Z</dc:date>
    </item>
  </channel>
</rss>

