<?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 [INCONSISTENT_BEHAVIOR_CROSS_VERSION.PARSE_DATETIME_BY_NEW_PARSER] in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/inconsistent-behavior-cross-version-parse-datetime-by-new-parser/m-p/43674#M27534</link>
    <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm trying to join 2 views in SQL editor for some analysis. I get the following error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[INCONSISTENT_BEHAVIOR_CROSS_VERSION.PARSE_DATETIME_BY_NEW_PARSER] You may get a different result due to the upgrading to Spark &amp;gt;= 3.0: Fail to parse '22/12/978' in the new parser. You can set "legacy_time_parser_policy" to "LEGACY" to restore the behavior before Spark 3.0, or set to "CORRECTED" and treat it as an invalid datetime string.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried correcting this by using the command: '&lt;/SPAN&gt;&lt;SPAN&gt;SET&lt;/SPAN&gt;&lt;SPAN&gt; legacy_time_parser_policy &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; legacy;' before my code but it still errors.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is anyone able to advise on how to solve this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2023 16:01:55 GMT</pubDate>
    <dc:creator>117074</dc:creator>
    <dc:date>2023-09-05T16:01:55Z</dc:date>
    <item>
      <title>[INCONSISTENT_BEHAVIOR_CROSS_VERSION.PARSE_DATETIME_BY_NEW_PARSER]</title>
      <link>https://community.databricks.com/t5/data-engineering/inconsistent-behavior-cross-version-parse-datetime-by-new-parser/m-p/43674#M27534</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm trying to join 2 views in SQL editor for some analysis. I get the following error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[INCONSISTENT_BEHAVIOR_CROSS_VERSION.PARSE_DATETIME_BY_NEW_PARSER] You may get a different result due to the upgrading to Spark &amp;gt;= 3.0: Fail to parse '22/12/978' in the new parser. You can set "legacy_time_parser_policy" to "LEGACY" to restore the behavior before Spark 3.0, or set to "CORRECTED" and treat it as an invalid datetime string.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried correcting this by using the command: '&lt;/SPAN&gt;&lt;SPAN&gt;SET&lt;/SPAN&gt;&lt;SPAN&gt; legacy_time_parser_policy &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; legacy;' before my code but it still errors.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is anyone able to advise on how to solve this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 16:01:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/inconsistent-behavior-cross-version-parse-datetime-by-new-parser/m-p/43674#M27534</guid>
      <dc:creator>117074</dc:creator>
      <dc:date>2023-09-05T16:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: [INCONSISTENT_BEHAVIOR_CROSS_VERSION.PARSE_DATETIME_BY_NEW_PARSER]</title>
      <link>https://community.databricks.com/t5/data-engineering/inconsistent-behavior-cross-version-parse-datetime-by-new-parser/m-p/48346#M28283</link>
      <description>&lt;P&gt;Hi Kaniz, I found the equivalent SQL code for this but it didn't seem to store the operation past the execution. I.e I would run the code to configure settings, then run the troublesome code afterwards and still get the same result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem has been identified as source data missing a digit for date of birth year, and therefore having results before 1000AD. This has been rectified at source.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for your time in answering!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 10:09:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/inconsistent-behavior-cross-version-parse-datetime-by-new-parser/m-p/48346#M28283</guid>
      <dc:creator>117074</dc:creator>
      <dc:date>2023-10-05T10:09:22Z</dc:date>
    </item>
  </channel>
</rss>

