<?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: Temporary table names are highlighted as syntax errors in SQL notebooks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/temporary-table-names-are-highlighted-as-syntax-errors-in-sql/m-p/45582#M27937</link>
    <description>&lt;P&gt;The issue might be that&amp;nbsp;&lt;SPAN&gt;tmp_table was not registered at the time when editor was looking up for the table name on the account that the create or replace statement &amp;nbsp;had not yet executed.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 19:42:55 GMT</pubDate>
    <dc:creator>swethaNandan</dc:creator>
    <dc:date>2023-09-21T19:42:55Z</dc:date>
    <item>
      <title>Temporary table names are highlighted as syntax errors in SQL notebooks</title>
      <link>https://community.databricks.com/t5/data-engineering/temporary-table-names-are-highlighted-as-syntax-errors-in-sql/m-p/41522#M27368</link>
      <description>&lt;P&gt;See attached screenshot. In my SQL notebook, declare a temporary view:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;CREATE&lt;/SPAN&gt; &lt;SPAN&gt;OR&lt;/SPAN&gt; &lt;SPAN&gt;REPLACE&lt;/SPAN&gt; &lt;SPAN&gt;TEMP&lt;/SPAN&gt; &lt;SPAN&gt;VIEW&lt;/SPAN&gt;&lt;SPAN&gt; tmp_table&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;AS&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;SELECT&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;SELECT&lt;/SPAN&gt; &lt;SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;FROM&lt;/SPAN&gt;&lt;SPAN&gt; tmp_table;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The code editor considers tmp_table is not a valid name in that latter SELECT. The reason is:&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Could not find "hive_metastore.default.tmp_table"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Although it does not prevent me from running successfully my queries, it is annoying as the editor keeps refreshing with those errors every few seconds. Additionally, temporary table names are not picked up by auto-complete, which is frustrating as well.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is there a way to make Databricks understands those tables should be looked up in the hive_metastore, but in the current session?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 Aug 2023 14:03:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/temporary-table-names-are-highlighted-as-syntax-errors-in-sql/m-p/41522#M27368</guid>
      <dc:creator>mgrave</dc:creator>
      <dc:date>2023-08-25T14:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary table names are highlighted as syntax errors in SQL notebooks</title>
      <link>https://community.databricks.com/t5/data-engineering/temporary-table-names-are-highlighted-as-syntax-errors-in-sql/m-p/45582#M27937</link>
      <description>&lt;P&gt;The issue might be that&amp;nbsp;&lt;SPAN&gt;tmp_table was not registered at the time when editor was looking up for the table name on the account that the create or replace statement &amp;nbsp;had not yet executed.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 19:42:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/temporary-table-names-are-highlighted-as-syntax-errors-in-sql/m-p/45582#M27937</guid>
      <dc:creator>swethaNandan</dc:creator>
      <dc:date>2023-09-21T19:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary table names are highlighted as syntax errors in SQL notebooks</title>
      <link>https://community.databricks.com/t5/data-engineering/temporary-table-names-are-highlighted-as-syntax-errors-in-sql/m-p/49470#M28565</link>
      <description>&lt;P&gt;My temp views&amp;nbsp;&lt;U&gt;always&lt;/U&gt; show red as well.&amp;nbsp; Maybe it is something with our specific environment?&lt;BR /&gt;&lt;BR /&gt;I've also noticed, when browsing the catalog from within the notebook, the temp tables are listed but an error is thrown when you try to view the columns of the temp view: "&lt;SPAN&gt;The table or view cannot be found or does not exist."&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 14:30:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/temporary-table-names-are-highlighted-as-syntax-errors-in-sql/m-p/49470#M28565</guid>
      <dc:creator>Craig_</dc:creator>
      <dc:date>2023-10-18T14:30:28Z</dc:date>
    </item>
  </channel>
</rss>

