<?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: DatabricksSession broken for 15.1 in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/70844#M34165</link>
    <description>&lt;P&gt;I am sorry but this is not helpfull. ChatGPT does not work well for PySpark code&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2024 05:33:38 GMT</pubDate>
    <dc:creator>TWib</dc:creator>
    <dc:date>2024-05-28T05:33:38Z</dc:date>
    <item>
      <title>DatabricksSession broken for 15.1</title>
      <link>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/70585#M34099</link>
      <description>&lt;P&gt;This code fails with exception:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;[&lt;A class="" href="https://docs.microsoft.com/azure/databricks/error-messages/error-classes#not_column_or_str" target="_blank" rel="noopener noreferrer"&gt;NOT_COLUMN_OR_STR&lt;/A&gt;] Argument `col` should be a Column or str, got Column.&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;File &lt;SPAN class=""&gt;&amp;lt;command-4420517954891674&amp;gt;, line 7&lt;/SPAN&gt; &lt;SPAN&gt; 4&lt;/SPAN&gt; spark &lt;SPAN&gt;=&lt;/SPAN&gt; DatabricksSession&lt;SPAN&gt;.&lt;/SPAN&gt;builder&lt;SPAN&gt;.&lt;/SPAN&gt;getOrCreate() &lt;SPAN&gt; 6&lt;/SPAN&gt; df &lt;SPAN&gt;=&lt;/SPAN&gt; spark&lt;SPAN&gt;.&lt;/SPAN&gt;read&lt;SPAN&gt;.&lt;/SPAN&gt;table(&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;samples.nyctaxi.trips&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;) &lt;SPAN class=""&gt;----&amp;gt; 7&lt;/SPAN&gt; df&lt;SPAN&gt;.&lt;/SPAN&gt;select(lit(&lt;SPAN&gt;5&lt;/SPAN&gt;)&lt;SPAN&gt;.&lt;/SPAN&gt;alias(&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;height&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;))&lt;SPAN&gt;.&lt;/SPAN&gt;show()&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from databricks.connect import DatabricksSession
from pyspark.sql.functions import lit 

spark = DatabricksSession.builder.getOrCreate()

df = spark.range(1)
df.select(lit(5).alias('height'), df.id).show()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Can you confirm this is a bug?&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 10:40:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/70585#M34099</guid>
      <dc:creator>TWib</dc:creator>
      <dc:date>2024-05-24T10:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: DatabricksSession broken for 15.1</title>
      <link>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/70749#M34140</link>
      <description>&lt;P&gt;It's an official example from pyspark documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.functions.lit.html" target="_blank"&gt;https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.functions.lit.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It works on older runtime, it used to work one week ago. Please fix your internal databricks connect on latest runtimes.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 14:20:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/70749#M34140</guid>
      <dc:creator>MM3</dc:creator>
      <dc:date>2024-05-27T14:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: DatabricksSession broken for 15.1</title>
      <link>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/70844#M34165</link>
      <description>&lt;P&gt;I am sorry but this is not helpfull. ChatGPT does not work well for PySpark code&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 05:33:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/70844#M34165</guid>
      <dc:creator>TWib</dc:creator>
      <dc:date>2024-05-28T05:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: DatabricksSession broken for 15.1</title>
      <link>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/70845#M34166</link>
      <description>&lt;P&gt;We dont understand the issue becauuse it suddently appeared but fixed it with migrating to 15.2.&lt;/P&gt;&lt;P&gt;Maybe databricks released some 15.1.XXXX update that broke stuff?&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 05:35:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/70845#M34166</guid>
      <dc:creator>TWib</dc:creator>
      <dc:date>2024-05-28T05:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: DatabricksSession broken for 15.1</title>
      <link>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/71034#M34218</link>
      <description>&lt;P&gt;Hi, I'm having the same problem using the 14.3LTS runtime.&lt;/P&gt;&lt;P&gt;The error just appeared yesterday. Before that, everything was working fine.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 15:27:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/71034#M34218</guid>
      <dc:creator>zerodarkzone</dc:creator>
      <dc:date>2024-05-29T15:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: DatabricksSession broken for 15.1</title>
      <link>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/71059#M34234</link>
      <description>&lt;P&gt;We are also seeing this error in 14.3 LTS from a simple example:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;from pyspark.sql.functions import col&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;df = spark.table('things')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;things = df.select(col('thing_id')).collect()&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[NOT_COLUMN_OR_STR] Argument `col` should be a Column or str, got Column.&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 21:48:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/71059#M34234</guid>
      <dc:creator>jcap</dc:creator>
      <dc:date>2024-05-29T21:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: DatabricksSession broken for 15.1</title>
      <link>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/89392#M37779</link>
      <description>&lt;P&gt;I can see this issue in 13.3 LTS, production code still running in 11.3LTS but upgradding to higher LTS DBR version gives this error. I believe you should fix it or provide a migration guide from one DBR to the other&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 00:51:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/89392#M37779</guid>
      <dc:creator>977073</dc:creator>
      <dc:date>2024-09-11T00:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: DatabricksSession broken for 15.1</title>
      <link>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/102272#M41048</link>
      <description>&lt;P&gt;I also get the same for runtime 13.3 LTS. The same code with 15.2 LTS seems to work.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;df.withColumn(&lt;SPAN&gt;"new_col"&lt;/SPAN&gt;, concat(&lt;SPAN&gt;"col1"&lt;/SPAN&gt;, lit(&lt;SPAN&gt;"-"&lt;/SPAN&gt;), &lt;SPAN&gt;"col2"&lt;/SPAN&gt;))&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Dec 2024 16:13:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/102272#M41048</guid>
      <dc:creator>yigalk</dc:creator>
      <dc:date>2024-12-16T16:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: DatabricksSession broken for 15.1</title>
      <link>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/102289#M41056</link>
      <description>&lt;P&gt;So actually it isn't working on runtime 15.&lt;/P&gt;&lt;P&gt;It is working on a shared cluster in runtime 15.4. But then I need also to use rdd for something and it fails on shared clusters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 18:47:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databrickssession-broken-for-15-1/m-p/102289#M41056</guid>
      <dc:creator>yigalk</dc:creator>
      <dc:date>2024-12-16T18:47:59Z</dc:date>
    </item>
  </channel>
</rss>

