<?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: Spark connect client and server versions should be same for executing UDFs in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/spark-connect-client-and-server-versions-should-be-same-for/m-p/117163#M9903</link>
    <description>&lt;P&gt;Correct, you cannot alter any pre-installed libraries on Serverless.&amp;nbsp; Have you considered changing your client side Python to align with the version running on the Serverless cluster?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Apr 2025 13:56:24 GMT</pubDate>
    <dc:creator>Louis_Frolio</dc:creator>
    <dc:date>2025-04-30T13:56:24Z</dc:date>
    <item>
      <title>Spark connect client and server versions should be same for executing UDFs</title>
      <link>https://community.databricks.com/t5/get-started-discussions/spark-connect-client-and-server-versions-should-be-same-for/m-p/117115#M9901</link>
      <description>&lt;P&gt;I am trying to execute pandas UDF in databricks. It gives me the following error on serverless compute,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;File &lt;/SPAN&gt;&lt;SPAN class=""&gt;/local_disk0/.ephemeral_nfs/envs/pythonEnv-b11ff17c-9b25-4ccb-927d-06a7d1ca7221/lib/python3.11/site-packages/pyspark/sql/connect/client/core.py:2340&lt;/SPAN&gt;&lt;SPAN&gt;, in &lt;/SPAN&gt;&lt;SPAN class=""&gt;SparkConnectClient._handle_rpc_error&lt;/SPAN&gt;&lt;SPAN class=""&gt;(self, rpc_error)&lt;/SPAN&gt; &lt;SPAN class=""&gt;2325&lt;/SPAN&gt; &lt;SPAN class=""&gt;raise&lt;/SPAN&gt; &lt;SPAN class=""&gt;Exception&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN class=""&gt;2326&lt;/SPAN&gt; &lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;Python versions in the Spark Connect client and server are different. &lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt; &lt;SPAN class=""&gt;2327&lt;/SPAN&gt; &lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;To execute user-defined functions, client and server should have the &lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt; &lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;SPAN class=""&gt; 2336&lt;/SPAN&gt; &lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A href="https://dbc-2ee7518e-501e.cloud.databricks.com/editor/notebooks/%3Ca%20class=" target="_blank" rel="noopener noreferrer"&gt;https://docs.databricks.com/en/release-notes/serverless.html&lt;/A&gt;" target="_blank" rel="noopener noreferrer"&amp;gt;&lt;A class="" href="https://docs.databricks.com/en/release-notes/serverless.html%3C/a%3E.%3C/span%3E%3Cspan" target="_blank" rel="noopener noreferrer"&gt;https://docs.databricks.com/en/release-notes/serverless.html&amp;lt;/a&amp;gt;.&amp;lt;/span&amp;gt;&amp;lt;span&lt;/A&gt; class="ansi-yellow-fg"&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;As far as I am aware, I cannot change the python version of the client in serverless. Are there any ways to fix this issue from my side?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 09:20:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/spark-connect-client-and-server-versions-should-be-same-for/m-p/117115#M9901</guid>
      <dc:creator>chinmay0924</dc:creator>
      <dc:date>2025-04-30T09:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Spark connect client and server versions should be same for executing UDFs</title>
      <link>https://community.databricks.com/t5/get-started-discussions/spark-connect-client-and-server-versions-should-be-same-for/m-p/117163#M9903</link>
      <description>&lt;P&gt;Correct, you cannot alter any pre-installed libraries on Serverless.&amp;nbsp; Have you considered changing your client side Python to align with the version running on the Serverless cluster?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 13:56:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/spark-connect-client-and-server-versions-should-be-same-for/m-p/117163#M9903</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-04-30T13:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Spark connect client and server versions should be same for executing UDFs</title>
      <link>https://community.databricks.com/t5/get-started-discussions/spark-connect-client-and-server-versions-should-be-same-for/m-p/117469#M9909</link>
      <description>&lt;P&gt;If I am using the databricks notebook with serverless attached, how do I change the client side python? I have control over client side python if I use databricks connect from my local setup, but is there a way to change the client side python version from databricks itself?&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 06:21:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/spark-connect-client-and-server-versions-should-be-same-for/m-p/117469#M9909</guid>
      <dc:creator>chinmay0924</dc:creator>
      <dc:date>2025-05-02T06:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Spark connect client and server versions should be same for executing UDFs</title>
      <link>https://community.databricks.com/t5/get-started-discussions/spark-connect-client-and-server-versions-should-be-same-for/m-p/117504#M9910</link>
      <description>&lt;DIV class="paragraph"&gt;When using a Databricks notebook attached to serverless compute, the Python version on the client side is determined by the underlying Serverless client image. This version is fixed and coupled with the Databricks Runtime (DBR) version or the Client Image version in the serverless environment. For example, Serverless Client Image v1 is tied to a specific Python version (e.g., Python 3.10.12 for DBR 14.3), and switching the DBR version changes the Python environment in use.&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;Currently, there is no direct way in Databricks to modify the default client-side Python version in serverless notebooks without changing the underlying DBR version or using custom measures like modifying deployment images.&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;For now, if you want to control the Python version for development purposes, using Databricks Connect locally remains your best option, as it allows full flexibility in configuring the desired Python environment on your local machine.&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;Hope this helps, Big Roux.&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 May 2025 11:42:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/spark-connect-client-and-server-versions-should-be-same-for/m-p/117504#M9910</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-05-02T11:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Spark connect client and server versions should be same for executing UDFs</title>
      <link>https://community.databricks.com/t5/get-started-discussions/spark-connect-client-and-server-versions-should-be-same-for/m-p/118041#M9917</link>
      <description>&lt;P&gt;Thanks a lot for the reply! Final question: Is it possible for the end user to select a serverless client image version or is that not something that I can choose? If so, how? I couldn't find any documentation regarding this.&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 06:07:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/spark-connect-client-and-server-versions-should-be-same-for/m-p/118041#M9917</guid>
      <dc:creator>chinmay0924</dc:creator>
      <dc:date>2025-05-07T06:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Spark connect client and server versions should be same for executing UDFs</title>
      <link>https://community.databricks.com/t5/get-started-discussions/spark-connect-client-and-server-versions-should-be-same-for/m-p/118131#M9918</link>
      <description>&lt;P&gt;Serverless is management free which means you cannot choose the image.&amp;nbsp; Hope this helps. Lou.&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 11:19:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/spark-connect-client-and-server-versions-should-be-same-for/m-p/118131#M9918</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-05-07T11:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Spark connect client and server versions should be same for executing UDFs</title>
      <link>https://community.databricks.com/t5/get-started-discussions/spark-connect-client-and-server-versions-should-be-same-for/m-p/132917#M10734</link>
      <description>&lt;P&gt;&lt;A href="https://community.databricks.com/t5/user/viewprofilepage/user-id/122867" target="_blank"&gt;@chinmay0924&lt;/A&gt;&amp;nbsp;- You can change the serverless client image by selecting the environment panel in a Databricks Notebook (on the right pane) or in the "&lt;SPAN&gt;Environment and Libraries"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;section while configuring a Databricks Job Task.&lt;/P&gt;
&lt;P&gt;The set of available serverless client images (officially called Serverless environment versions is here&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/release-notes/serverless/environment-version/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.databricks.com/aws/en/release-notes/serverless/environment-version/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In the case of Databricks Connect, upgrade to DB Connect 15.4.10 or later (on the 15.x line) or 16.4.1 (on the 16.x line). The reported issue has been fixed in these versions. The compatible Python version on 15.4.10 (or later) is Python 3.11, and on 16.4.1 (or later), it is Python 3.12.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More details can be found here:&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/databricks-connect/requirements#databricks-connect-versions" target="_blank"&gt;https://docs.databricks.com/aws/en/dev-tools/databricks-connect/requirements#databricks-connect-versions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 10:42:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/spark-connect-client-and-server-versions-should-be-same-for/m-p/132917#M10734</guid>
      <dc:creator>nija</dc:creator>
      <dc:date>2025-09-24T10:42:39Z</dc:date>
    </item>
  </channel>
</rss>

