<?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: Join altered view tables in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/join-altered-view-tables/m-p/121148#M2107</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/167487"&gt;@ArturSvoboda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This sounds like a classic Databricks workspace isolation issue. Here are the most likely causes and things to check:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Temporary Views vs Persistent Views&lt;/STRONG&gt;&lt;BR /&gt;Your renamed views might be temporary views that only exist in your current Spark session:&lt;BR /&gt;- Temporary views are created with CREATE OR REPLACE TEMPORARY VIEW and only exist in your session&lt;BR /&gt;- Global temporary views are created with CREATE GLOBAL TEMPORARY VIEW and exist across sessions but in a special global_temp database&lt;BR /&gt;- Persistent views are created with CREATE VIEW and are stored in the metastore.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Location/Namespace Issues&lt;/STRONG&gt;: Check where these views actually exist:&lt;/P&gt;&lt;P&gt;-- Try these commands to locate your views:&lt;BR /&gt;SHOW VIEWS IN global_temp;&lt;BR /&gt;SHOW TABLES IN global_temp;&lt;BR /&gt;DESCRIBE EXTENDED your_view_name;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Three-Part Naming&lt;/STRONG&gt;&lt;BR /&gt;In Unity Catalog, you need the full three-part name:&lt;/P&gt;&lt;P&gt;-- Instead of just:&lt;BR /&gt;SELECT * FROM your_view&lt;/P&gt;&lt;P&gt;-- Use:&lt;BR /&gt;SELECT * FROM catalog.schema.your_view&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;4. Session vs Metastore Storage&lt;/STRONG&gt;&lt;BR /&gt;- If SELECT * works but SHOW VIEWS doesn't show them, they're likely temporary views in your session.&lt;BR /&gt;- The _sqldf you're seeing suggests these might be pandas/SQL dataframe temporary views.&lt;/P&gt;&lt;P&gt;-- Check current database&lt;BR /&gt;SELECT current_database();&lt;/P&gt;&lt;P&gt;-- Look for temp views&lt;BR /&gt;SHOW VIEWS IN global_temp;&lt;/P&gt;&lt;P&gt;-- Check if they're in a different schema&lt;BR /&gt;SHOW SCHEMAS;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Quick diagnostic:&lt;/STRONG&gt;&lt;BR /&gt;-- Check current database&lt;BR /&gt;SELECT current_database();&lt;/P&gt;&lt;P&gt;-- Look for temp views&lt;BR /&gt;SHOW VIEWS IN global_temp;&lt;/P&gt;&lt;P&gt;-- Check if they're in a different schema&lt;BR /&gt;SHOW SCHEMAS;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Metastore type confusion:&lt;/STRONG&gt;&lt;BR /&gt;You mentioned hive.metastore - are you mixing Hive metastore and Unity Catalog? Views might exist in one but not the other.&lt;BR /&gt;Can you try:&lt;/P&gt;&lt;P&gt;Running DESCRIBE EXTENDED view_name on one of your views&lt;BR /&gt;Sharing the exact error message you get when trying to JOIN&lt;BR /&gt;Confirming which metastore/catalog you're working in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jun 2025 16:27:10 GMT</pubDate>
    <dc:creator>lingareddy_Alva</dc:creator>
    <dc:date>2025-06-06T16:27:10Z</dc:date>
    <item>
      <title>Join altered view tables</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/join-altered-view-tables/m-p/121143#M2106</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have these two tables which are altered(renamed) views from my main table, and there seems to be no way of joining this tables. Everytime I try Databricks indicates that these tables cannot be found, but if I go and write a Select * statements with these tables then it will show me the tables. Do you have any idea what is going on? Where are these even saved? Because even though the tables clearly exists, if I SHOW VIEWS IN hive.metastore, then all I get is _sqldf, even though these other views clearly exist.&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 15:22:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/join-altered-view-tables/m-p/121143#M2106</guid>
      <dc:creator>ArturSvoboda</dc:creator>
      <dc:date>2025-06-06T15:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Join altered view tables</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/join-altered-view-tables/m-p/121148#M2107</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/167487"&gt;@ArturSvoboda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This sounds like a classic Databricks workspace isolation issue. Here are the most likely causes and things to check:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Temporary Views vs Persistent Views&lt;/STRONG&gt;&lt;BR /&gt;Your renamed views might be temporary views that only exist in your current Spark session:&lt;BR /&gt;- Temporary views are created with CREATE OR REPLACE TEMPORARY VIEW and only exist in your session&lt;BR /&gt;- Global temporary views are created with CREATE GLOBAL TEMPORARY VIEW and exist across sessions but in a special global_temp database&lt;BR /&gt;- Persistent views are created with CREATE VIEW and are stored in the metastore.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Location/Namespace Issues&lt;/STRONG&gt;: Check where these views actually exist:&lt;/P&gt;&lt;P&gt;-- Try these commands to locate your views:&lt;BR /&gt;SHOW VIEWS IN global_temp;&lt;BR /&gt;SHOW TABLES IN global_temp;&lt;BR /&gt;DESCRIBE EXTENDED your_view_name;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Three-Part Naming&lt;/STRONG&gt;&lt;BR /&gt;In Unity Catalog, you need the full three-part name:&lt;/P&gt;&lt;P&gt;-- Instead of just:&lt;BR /&gt;SELECT * FROM your_view&lt;/P&gt;&lt;P&gt;-- Use:&lt;BR /&gt;SELECT * FROM catalog.schema.your_view&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;4. Session vs Metastore Storage&lt;/STRONG&gt;&lt;BR /&gt;- If SELECT * works but SHOW VIEWS doesn't show them, they're likely temporary views in your session.&lt;BR /&gt;- The _sqldf you're seeing suggests these might be pandas/SQL dataframe temporary views.&lt;/P&gt;&lt;P&gt;-- Check current database&lt;BR /&gt;SELECT current_database();&lt;/P&gt;&lt;P&gt;-- Look for temp views&lt;BR /&gt;SHOW VIEWS IN global_temp;&lt;/P&gt;&lt;P&gt;-- Check if they're in a different schema&lt;BR /&gt;SHOW SCHEMAS;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Quick diagnostic:&lt;/STRONG&gt;&lt;BR /&gt;-- Check current database&lt;BR /&gt;SELECT current_database();&lt;/P&gt;&lt;P&gt;-- Look for temp views&lt;BR /&gt;SHOW VIEWS IN global_temp;&lt;/P&gt;&lt;P&gt;-- Check if they're in a different schema&lt;BR /&gt;SHOW SCHEMAS;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Metastore type confusion:&lt;/STRONG&gt;&lt;BR /&gt;You mentioned hive.metastore - are you mixing Hive metastore and Unity Catalog? Views might exist in one but not the other.&lt;BR /&gt;Can you try:&lt;/P&gt;&lt;P&gt;Running DESCRIBE EXTENDED view_name on one of your views&lt;BR /&gt;Sharing the exact error message you get when trying to JOIN&lt;BR /&gt;Confirming which metastore/catalog you're working in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 16:27:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/join-altered-view-tables/m-p/121148#M2107</guid>
      <dc:creator>lingareddy_Alva</dc:creator>
      <dc:date>2025-06-06T16:27:10Z</dc:date>
    </item>
  </channel>
</rss>

