<?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: New strange error on Runtime 12 and above: java.lang.AssertionError: assertion failed in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10658#M5799</link>
    <description>&lt;P&gt;Hello, I recommend you open a ticket to the support. It's very important&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2023 10:07:46 GMT</pubDate>
    <dc:creator>youssefmrini</dc:creator>
    <dc:date>2023-02-01T10:07:46Z</dc:date>
    <item>
      <title>New strange error on Runtime 12 and above: java.lang.AssertionError: assertion failed</title>
      <link>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10655#M5796</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I struggle to find out why this error message suddenly pops up after running a cell in a notebook. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The notebook is trying to run a simple "INSERT INTO" command in SQL. When I only do a SELECT clause, the cell runs without error. Also, I only get this error message when running Databricks runtime 12 and 12.1 but 11.3LTS runs both INSERT INTO and SELECT without errors. The weird thing is that this error suddenly popped up after a week when I switched to runtime 12 from 11.3. Now I have reverted back to 11.3 so that my workflows can run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help decyphering what this error message means?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Py4JJavaError                             Traceback (most recent call last)
File &amp;lt;command-3863647901736418&amp;gt;:7
      5     display(df)
      6     return df
----&amp;gt; 7   _sqldf = ____databricks_percent_sql()
      8 finally:
      9   del ____databricks_percent_sql
&amp;nbsp;
File &amp;lt;command-3863647901736418&amp;gt;:4, in ____databricks_percent_sql()
      2 def ____databricks_percent_sql():
      3   import base64
----&amp;gt; 4   df = spark.sql(base64.standard_b64decode("aW5zZXJ0IGludG8gZW5yaWNoZWQuZGFpbHlfcGVyaW9kaWNfc25hcHNob3RfZmFjdCAoCiAgLypnZXQgYWxsIHRoZSBzYWxlaWRzIHRoYXQgZXhpc3RzIGluIGVucmljaGVkLnRyYW5zYWN0aW9uc19mYWN0Ki8gIAogIHdpdGggc2FsZWlkcyBhcyAoCiAgCnNlbGVjdCBkaXN0aW5jdCBTYWxlSURTb3VyY2UgZnJvbSBlbnJpY2hlZC50cmFuc2FjdGlvbnNfZmFjdAogIAopLApjb250cmFjdF9kaW0gYXMgKAogIAogCiAgc2VsZWN0CiAgICAqLAogICAgCiAgICBST1dfTlVNQkVSKCkgT1ZFUiAoCiAgICAgIFBBUlRJVElPTiBCWSBTYWxlSURTb3VyY2UKICAgICAgT1JERVIgQlkKICAgICAgICBSZWdpc3RlcmVkIGRlc2MKICAgICkgYXMgcm93bnVtYmVyCiAgZnJvbQogICAgZW5yaWNoZWQuY29udHJhY3RfZGltCiAgCiAgd2hlcmUKICAgIFNhbGVJRFNvdXJjZSBpbiAoCiAgICAgIHNlbGVjdAogICAgICAgIGRpc3RpbmN0IFNhbGVJRFNvdXJjZQogICAgICBmcm9tCiAgICAgICAgc2FsZWlkcwogICAgKQogIAogICAgYW5kIERBVEUoUmVnaXN0ZXJlZCkgPD0gREFURSgnMjAyMy0wMS0yNicpCiksCnN0dWRlbnRfZGltIGFzICgKICAKICBzZWxlY3QKICAgICosCiAgICAKICAgIFJPV19OVU1CRVIoKSBPVkVSICgKICAgICAgUEFSVElUSU9OIEJZIENvbnRhY3RJRFNvdXJjZQogICAgICBPUkRFUiBCWQogICAgICAgIFJlZ2lzdGVyZWQgZGVzYwogICAgKSBhcyByb3dudW1iZXIKICBmcm9tCiAgICBlbnJpY2hlZC5zdHVkZW50X2RpbQogIAogIHdoZXJlCiAgICBDb250YWN0SURTb3VyY2UgaW4gKAogICAgICBzZWxlY3QKICAgICAgICBkaXN0aW5jdCBDb250YWN0SURTb3VyY2UKICAgICAgZnJvbQogICAgICAgIGNvbnRyYWN0X2... ").decode())
      5   display(df)
      6   return df
&amp;nbsp;
File /databricks/spark/python/pyspark/instrumentation_utils.py:48, in _wrap_function.&amp;lt;locals&amp;gt;.wrapper(*args, **kwargs)
     46 start = time.perf_counter()
     47 try:
---&amp;gt; 48     res = func(*args, **kwargs)
     49     logger.log_success(
     50         module_name, class_name, function_name, time.perf_counter() - start, signature
     51     )
     52     return res
&amp;nbsp;
File /databricks/spark/python/pyspark/sql/session.py:1205, in SparkSession.sql(self, sqlQuery, **kwargs)
   1203     sqlQuery = formatter.format(sqlQuery, **kwargs)
   1204 try:
-&amp;gt; 1205     return DataFrame(self._jsparkSession.sql(sqlQuery), self)
   1206 finally:
   1207     if len(kwargs) &amp;gt; 0:
&amp;nbsp;
File /databricks/spark/python/lib/py4j-0.10.9.5-src.zip/py4j/java_gateway.py:1321, in JavaMember.__call__(self, *args)
   1315 command = proto.CALL_COMMAND_NAME +\
   1316     self.command_header +\
   1317     args_command +\
   1318     proto.END_COMMAND_PART
   1320 answer = self.gateway_client.send_command(command)
-&amp;gt; 1321 return_value = get_return_value(
   1322     answer, self.gateway_client, self.target_id, self.name)
   1324 for temp_arg in temp_args:
   1325     temp_arg._detach()
&amp;nbsp;
File /databricks/spark/python/pyspark/sql/utils.py:209, in capture_sql_exception.&amp;lt;locals&amp;gt;.deco(*a, **kw)
    207 def deco(*a: Any, **kw: Any) -&amp;gt; Any:
    208     try:
--&amp;gt; 209         return f(*a, **kw)
    210     except Py4JJavaError as e:
    211         converted = convert_exception(e.java_exception)
&amp;nbsp;
File /databricks/spark/python/lib/py4j-0.10.9.5-src.zip/py4j/protocol.py:326, in get_return_value(answer, gateway_client, target_id, name)
    324 value = OUTPUT_CONVERTER[type](answer[2:], gateway_client)
    325 if answer[1] == REFERENCE_TYPE:
--&amp;gt; 326     raise Py4JJavaError(
    327         "An error occurred while calling {0}{1}{2}.\n".
    328         format(target_id, ".", name), value)
    329 else:
    330     raise Py4JError(
    331         "An error occurred while calling {0}{1}{2}. Trace:\n{3}\n".
    332         format(target_id, ".", name, value))
&amp;nbsp;
Py4JJavaError: An error occurred while calling o337.sql.
: java.lang.AssertionError: assertion failed&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 09:37:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10655#M5796</guid>
      <dc:creator>mortenhaga</dc:creator>
      <dc:date>2023-01-26T09:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: New strange error on Runtime 12 and above: java.lang.AssertionError: assertion failed</title>
      <link>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10656#M5797</link>
      <description>&lt;P&gt;@morten haga​&amp;nbsp; - could you please try setting the below config and retry?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;spark.conf.set("spark.sql.constraintPropagation.enabled", "false")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 20:30:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10656#M5797</guid>
      <dc:creator>shan_chandra</dc:creator>
      <dc:date>2023-01-30T20:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: New strange error on Runtime 12 and above: java.lang.AssertionError: assertion failed</title>
      <link>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10657#M5798</link>
      <description>&lt;P&gt;Hi @Shanmugavel Chandrakasu​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out! I have pasted the config in a cell above, ran it, but still the same error. If it helps, I can paste in the script here, so please let me know.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 08:06:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10657#M5798</guid>
      <dc:creator>mortenhaga</dc:creator>
      <dc:date>2023-01-31T08:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: New strange error on Runtime 12 and above: java.lang.AssertionError: assertion failed</title>
      <link>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10658#M5799</link>
      <description>&lt;P&gt;Hello, I recommend you open a ticket to the support. It's very important&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 10:07:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10658#M5799</guid>
      <dc:creator>youssefmrini</dc:creator>
      <dc:date>2023-02-01T10:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: New strange error on Runtime 12 and above: java.lang.AssertionError: assertion failed</title>
      <link>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10659#M5800</link>
      <description>&lt;P&gt;You can raise a ticket regarding the problem to the databricks support and mention about obstacles you are facing ​.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 19:28:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10659#M5800</guid>
      <dc:creator>Manoj12421</dc:creator>
      <dc:date>2023-02-08T19:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: New strange error on Runtime 12 and above: java.lang.AssertionError: assertion failed</title>
      <link>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10660#M5801</link>
      <description>&lt;P&gt;Hi! Yes I would If we had a support package, but we have not so I cant &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 08:12:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10660#M5801</guid>
      <dc:creator>mortenhaga</dc:creator>
      <dc:date>2023-02-09T08:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: New strange error on Runtime 12 and above: java.lang.AssertionError: assertion failed</title>
      <link>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10661#M5802</link>
      <description>&lt;P&gt;Hi! Yes I would If we had a support package, but we have not so I cant &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 08:12:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10661#M5802</guid>
      <dc:creator>mortenhaga</dc:creator>
      <dc:date>2023-02-09T08:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: New strange error on Runtime 12 and above: java.lang.AssertionError: assertion failed</title>
      <link>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10662#M5803</link>
      <description>&lt;P&gt;Thanks for reporting! We have identified a defect with an early version of DBR 12 related to INSERT INTO .. SELECT when certain query patterns are involved. The defect has since been fixed. Please let us know if you have any additional questions. &lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 18:29:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10662#M5803</guid>
      <dc:creator>entongshen__Dat</dc:creator>
      <dc:date>2023-03-24T18:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: New strange error on Runtime 12 and above: java.lang.AssertionError: assertion failed</title>
      <link>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10663#M5804</link>
      <description>&lt;P&gt;Thanks for finally answering. Then I can safely upgrade and roll-out again.​&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 20:02:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-strange-error-on-runtime-12-and-above-java-lang/m-p/10663#M5804</guid>
      <dc:creator>mortenhaga</dc:creator>
      <dc:date>2023-03-24T20:02:52Z</dc:date>
    </item>
  </channel>
</rss>

