<?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: Can't query delta tables, token missing required scope in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/57970#M30973</link>
    <description>&lt;P&gt;I am having similar issue, any update on this one ?&lt;/P&gt;</description>
    <pubDate>Sun, 21 Jan 2024 05:35:39 GMT</pubDate>
    <dc:creator>udi_azulay</dc:creator>
    <dc:date>2024-01-21T05:35:39Z</dc:date>
    <item>
      <title>Can't query delta tables, token missing required scope</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/50458#M28811</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I've correctly set up a stream from kinesis, but I can't read anything from my delta table&lt;/P&gt;&lt;P&gt;I'm actually reproducing the demo from Frank Munz: &lt;A href="https://github.com/fmunz/delta-live-tables-notebooks/tree/main/motion-demo" target="_blank" rel="noopener"&gt;https://github.com/fmunz/delta-live-tables-notebooks/tree/main/motion-demo&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and I'm running the following script which is named&amp;nbsp;&lt;SPAN&gt;M-Magn SSS.py&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# Databricks notebook source
# MAGIC %md
# MAGIC ![Name of the image](https://raw.githubusercontent.com/fmunz/motion/master/img/magn.png)

# COMMAND ----------

# MAGIC %sql
# MAGIC USE demo_frank.motion;
# MAGIC DESCRIBE table sensor;

# COMMAND ----------

from pyspark.sql.functions import window

# set watermark for 1 minute for time column
# spark.sql.shuffle.partitions (default 200, match number of cores)
spark.conf.set("spark.sql.shuffle.partitions", 30)


display(spark.readStream.format("delta").
        table("sensor").withWatermark("time", "3 seconds"). \
        groupBy(window("time", "1 second")).avg("magn").orderBy("window",ascending=False).limit(30))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I've created the pipeline successfully, I'm now trying to look at my delta table, but databricks raises the following error when i run this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%sql
USE bigdatalab.motion;
DESCRIBE table sensor;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error in SQL statement: ExecutionException: org.apache.spark.sql.AnalysisException: 403: Your token is missing the required scopes for this endpoint.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't know what could be the cause of the problem, I've tried to set up all the authorizations but it doesn't work.&lt;BR /&gt;&lt;BR /&gt;Hope you can help me, I'm using the Databricks on AWS 14 days trial.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2023 18:03:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/50458#M28811</guid>
      <dc:creator>Miro_ta</dc:creator>
      <dc:date>2023-11-04T18:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can't query delta tables, token missing required scope</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/50459#M28812</link>
      <description>&lt;P&gt;If I try to query any other table that is not delta, I don't get any error.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2023 18:01:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/50459#M28812</guid>
      <dc:creator>Miro_ta</dc:creator>
      <dc:date>2023-11-04T18:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can't query delta tables, token missing required scope</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/50692#M28864</link>
      <description>&lt;P&gt;Did you figure out an answer to this? I am seeing the same thing on a delta streaming table.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 01:47:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/50692#M28864</guid>
      <dc:creator>trejas</dc:creator>
      <dc:date>2023-11-09T01:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can't query delta tables, token missing required scope</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/50830#M28909</link>
      <description>&lt;P&gt;Not really, but I solved in my case using the hive metastore instead of the unity catalog, maybe it's because I'm on a trial version&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 19:27:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/50830#M28909</guid>
      <dc:creator>Miro_ta</dc:creator>
      <dc:date>2023-11-10T19:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can't query delta tables, token missing required scope</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/56445#M30556</link>
      <description>&lt;P&gt;I am facing the same issue but i cannot move my data to hive_metastore. Does anyone has a solution for Unity catalog?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 18:38:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/56445#M30556</guid>
      <dc:creator>nag_kanchan</dc:creator>
      <dc:date>2024-01-04T18:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can't query delta tables, token missing required scope</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/57966#M30971</link>
      <description>&lt;P&gt;I'm running into a similar situation such that &lt;STRONG&gt;DESCRIBE&lt;EM&gt; &amp;lt;table&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt; on a table in UC works fine &lt;EM&gt;but&lt;/EM&gt;&amp;nbsp;running &lt;STRONG&gt;DESCRIBE EXTENDED&amp;nbsp;&lt;EM&gt;&amp;lt;table&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt; on that same table gives me that same error from a databricks notebook.&lt;/P&gt;&lt;P&gt;Strangely, I don't get this error &lt;EM&gt;if&lt;/EM&gt; I switch the notebook to instead use a Serverless SQL Warehouse, and not a personal cluster compute.&lt;/P&gt;&lt;P&gt;So, I personally definitely have whatever access is needed, but somehow this compute instance does not have access to &lt;EM&gt;just&lt;/EM&gt; the &lt;EM&gt;extended&lt;/EM&gt; properties?&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;ExecutionException: org.apache.spark.sql.AnalysisException: 403: Your token is missing the required scopes for this endpoint.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;LI-SPOILER&gt;What permissions must the compute instance have to access extended properties?&lt;/LI-SPOILER&gt;</description>
      <pubDate>Sat, 20 Jan 2024 18:55:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/57966#M30971</guid>
      <dc:creator>jlb0001</dc:creator>
      <dc:date>2024-01-20T18:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can't query delta tables, token missing required scope</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/57970#M30973</link>
      <description>&lt;P&gt;I am having similar issue, any update on this one ?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2024 05:35:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/57970#M30973</guid>
      <dc:creator>udi_azulay</dc:creator>
      <dc:date>2024-01-21T05:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can't query delta tables, token missing required scope</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/61359#M31770</link>
      <description>&lt;P&gt;At this time, Delta Live Tables in Unity Catalog can only be read using a Shared compute or SQL Warehouse (support to read from Assigned compute is on the roadmap).&lt;/P&gt;
&lt;P&gt;To read the table using Assigned compute (e.g. Personal Compute), you will first need to make a copy of the table using a Shared Compute/SQL Warehouse (i.e. not in a DLT pipeline). You can use Assigned compute to read from the copy.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 13:13:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/61359#M31770</guid>
      <dc:creator>Brosenberg</dc:creator>
      <dc:date>2024-02-21T13:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can't query delta tables, token missing required scope</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/63023#M32151</link>
      <description>&lt;P&gt;Hello, I also had this issue. It was because I was trying to read a DLT table with a Machine Learning Runtime. At time of writing, Machine Learning Runtimes are not compatible with shared access mode, so I ended up setting up two clusters, one MLR assigned access mode, then a normal runtime shared access mode, and then played a fun game of dependency jenga.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was only setting up a demo, so no big deal. If you're looking at something in production, I'm not sure I could recommend this approach unless it's a last resort.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 10:36:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-query-delta-tables-token-missing-required-scope/m-p/63023#M32151</guid>
      <dc:creator>holly</dc:creator>
      <dc:date>2024-03-08T10:36:52Z</dc:date>
    </item>
  </channel>
</rss>

