<?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: Cannot use spark.catalog.listTables in notebook in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4785820#M11446</link>
    <description>&lt;P&gt;This may be a problem in the delta project.&amp;nbsp; I found the following:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/delta-io/delta/issues/2610" target="_blank"&gt;https://github.com/delta-io/delta/issues/2610&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Aug 2025 02:12:27 GMT</pubDate>
    <dc:creator>dbeavon3</dc:creator>
    <dc:date>2025-08-04T02:12:27Z</dc:date>
    <item>
      <title>Cannot use spark.catalog.listTables in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4784887#M11421</link>
      <description>&lt;P&gt;I have errors when calling&amp;nbsp;&lt;SPAN&gt;spark&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;catalog&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;listTables&lt;/SPAN&gt;&lt;SPAN&gt;() in fabic, with a default lakehouse connected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The error is like so:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[PARSE_SYNTAX_ERROR] Syntax error at or near end of input.(line 1, pos 0)

== SQL ==

^^^&lt;/LI-CODE&gt;&lt;P&gt;runtime 1.3&lt;BR /&gt;spark 3.5&lt;BR /&gt;delta 3.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not enroll in an preview features as far as I'm aware.&amp;nbsp; Here is the full screenshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the docs this stuff is supposed to be GA.&amp;nbsp;&lt;BR /&gt;Why is there such a basic and incoherent error when listing tables???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/runtime" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/runtime&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 20:03:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4784887#M11421</guid>
      <dc:creator>dbeavon3</dc:creator>
      <dc:date>2025-08-01T20:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use spark.catalog.listTables in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4785507#M11433</link>
      <description>&lt;P&gt;There is definitely permissions issue in your spark environment. I can see the tables in spark.catalog.listTables(). It was available in Delta Lake 2.2.0 and it is part of data lake of spark.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Aug 2025 09:34:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4785507#M11433</guid>
      <dc:creator>BhaveshPatel</dc:creator>
      <dc:date>2025-08-03T09:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use spark.catalog.listTables in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4785817#M11445</link>
      <description>&lt;P&gt;The error message does not say anything about permissions.&amp;nbsp; It says :&lt;/P&gt;&lt;PRE&gt;PARSE_SYNTAX_ERROR&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This bug was reported before in the community.&amp;nbsp; The last time it was reported, the users were told to upgrade to a GA version of delta.&amp;nbsp; I'm on GA for all versions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have a command to prove or disprove your theory about permissions, please let me know.&amp;nbsp; There are no clue's on my end to support that theory.&amp;nbsp; I can use my default lakehouse fine, and can run almost every type of spark operation except I get failures on certain "catalog" operations from pyspark.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 02:09:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4785817#M11445</guid>
      <dc:creator>dbeavon3</dc:creator>
      <dc:date>2025-08-04T02:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use spark.catalog.listTables in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4785820#M11446</link>
      <description>&lt;P&gt;This may be a problem in the delta project.&amp;nbsp; I found the following:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/delta-io/delta/issues/2610" target="_blank"&gt;https://github.com/delta-io/delta/issues/2610&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 02:12:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4785820#M11446</guid>
      <dc:creator>dbeavon3</dc:creator>
      <dc:date>2025-08-04T02:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use spark.catalog.listTables in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4786315#M11459</link>
      <description>&lt;P&gt;This is still visible in my spark environment. There is a permissions issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;use pyspark and notebooks altogether.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 07:57:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4786315#M11459</guid>
      <dc:creator>BhaveshPatel</dc:creator>
      <dc:date>2025-08-04T07:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use spark.catalog.listTables in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4788243#M11512</link>
      <description>&lt;P&gt;Thankyou,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="10288" data-lia-user-login="BhaveshPatel" class="lia-mention lia-mention-user"&gt;BhaveshPatel&lt;/a&gt;, for your response.&lt;BR /&gt;&lt;BR /&gt;Hi dbeavon3,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We appreciate your inquiry submitted through the Microsoft Fabric Community Forum.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As per my understanding, the error “[PARSE_SYNTAX_ERROR] Syntax error at or near end of input” may occur if the default Lakehouse is not attached, if the Lakehouse is schema enabled which is a known limitation with certain Spark catalog APIs or due to the parsing behavior of Python 3.11 and Delta 3.2 generating invalid SQL for&lt;/SPAN&gt; spark.catalog.listTables().&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Kindly follow the steps below to resolve the issue:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Check the default database using&amp;nbsp;spark.catalog.currentDatabase(). If this returns an error or shows default with no tables, you will need to specify your Lakehouse name explicitly.&lt;/LI&gt;
&lt;LI&gt;List the available databases using&amp;nbsp;spark.catalog.listDatabases(). Confirm that your Lakehouse name is present in the list.&lt;/LI&gt;
&lt;LI&gt;Explicitly list tables from the Lakehouse by using&amp;nbsp;spark.catalog.listTables("YourLakehouseName"). Please replace&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;YourLakehouseName&amp;nbsp;with the actual name of your Lakehouse.&lt;/LI&gt;
&lt;LI&gt;Ensure that the notebook has the correct default Lakehouse attached.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Please find the attached screenshot regarding the schema enabled Lakehouse limitation:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Additionally, kindly refer to the following link for more information:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-schemas" target="_blank"&gt;Lakehouse schemas (Preview) - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We hope that the above information will assist in resolving the issue. Should you have any further queries, please feel free to contact the Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 19:15:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4788243#M11512</guid>
      <dc:creator>v-pnaroju-msft</dc:creator>
      <dc:date>2025-08-05T19:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use spark.catalog.listTables in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4792063#M11610</link>
      <description>&lt;P&gt;Hi dbeavon3,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We would like to follow up and see whether the details we shared have resolved your problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need any more assistance, please feel free to connect with the Microsoft Fabric community.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Aug 2025 17:08:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4792063#M11610</guid>
      <dc:creator>v-pnaroju-msft</dc:creator>
      <dc:date>2025-08-09T17:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use spark.catalog.listTables in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4794367#M11671</link>
      <description>&lt;P&gt;Hi dbeavon3,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are following up to see if what we shared solved your issue. If you need more support, please reach out to the Microsoft Fabric community.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 11:25:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4794367#M11671</guid>
      <dc:creator>v-pnaroju-msft</dc:creator>
      <dc:date>2025-08-12T11:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use spark.catalog.listTables in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4798091#M11765</link>
      <description>&lt;P&gt;Hi dbeavon3,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We wanted to see if the information we gave helped fix your problem. If you need more help, please feel free to contact the Microsoft Fabric community.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Aug 2025 14:07:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Cannot-use-spark-catalog-listTables-in-notebook/m-p/4798091#M11765</guid>
      <dc:creator>v-pnaroju-msft</dc:creator>
      <dc:date>2025-08-15T14:07:09Z</dc:date>
    </item>
  </channel>
</rss>

