<?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_partition_id() - User does not have permission SELECT on anonymous function in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/spark-partition-id-user-does-not-have-permission-select-on/m-p/98179#M8706</link>
    <description>&lt;P&gt;Thanks for looking into it.&lt;/P&gt;&lt;P&gt;Yes, it is a shared cluster we use as a dev cluster for creating our pipelines.&amp;nbsp; I suppose we will try to apply the workaround you shared&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2024 10:29:23 GMT</pubDate>
    <dc:creator>jes</dc:creator>
    <dc:date>2024-11-08T10:29:23Z</dc:date>
    <item>
      <title>spark_partition_id() - User does not have permission SELECT on anonymous function</title>
      <link>https://community.databricks.com/t5/get-started-discussions/spark-partition-id-user-does-not-have-permission-select-on/m-p/98123#M8704</link>
      <description>&lt;P&gt;I'm trying to verify the partitions assigned to rows.&lt;/P&gt;&lt;P&gt;I'm running something like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from pyspark.sql.functions  import spark_partition_id

df = spark.read.table("some.uc.table").limit(10)
df = df.repartition(2)
df = df.withColumn("partitionid", spark_partition_id())
display(df)&lt;/LI-CODE&gt;&lt;P&gt;The results in:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Insufficient privileges: User does not have permission SELECT on anonymous function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This really seems like a bug that needs get fixed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 17:43:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/spark-partition-id-user-does-not-have-permission-select-on/m-p/98123#M8704</guid>
      <dc:creator>jes</dc:creator>
      <dc:date>2024-11-07T17:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: spark_partition_id() - User does not have permission SELECT on anonymous function</title>
      <link>https://community.databricks.com/t5/get-started-discussions/spark-partition-id-user-does-not-have-permission-select-on/m-p/98134#M8705</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/131524"&gt;@jes&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I have validate your failure internally and found that there is already an internal request to address this behavior.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using a shared access mode cluster? As this behavior does not look to be observed when using single access mode.&lt;/P&gt;
&lt;P&gt;For now the workaround would be:&amp;nbsp;&lt;SPAN&gt;GRANT SELECT ON ANONYMOUS FUNCTION TO `user`&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I will keep you all posted once fix is released.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 19:59:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/spark-partition-id-user-does-not-have-permission-select-on/m-p/98134#M8705</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-11-07T19:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: spark_partition_id() - User does not have permission SELECT on anonymous function</title>
      <link>https://community.databricks.com/t5/get-started-discussions/spark-partition-id-user-does-not-have-permission-select-on/m-p/98179#M8706</link>
      <description>&lt;P&gt;Thanks for looking into it.&lt;/P&gt;&lt;P&gt;Yes, it is a shared cluster we use as a dev cluster for creating our pipelines.&amp;nbsp; I suppose we will try to apply the workaround you shared&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 10:29:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/spark-partition-id-user-does-not-have-permission-select-on/m-p/98179#M8706</guid>
      <dc:creator>jes</dc:creator>
      <dc:date>2024-11-08T10:29:23Z</dc:date>
    </item>
  </channel>
</rss>

