<?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 Databricks Views in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-views/m-p/16777#M10890</link>
    <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;How do we find the definition of View in databricks?&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Aug 2021 03:24:38 GMT</pubDate>
    <dc:creator>maheshwor</dc:creator>
    <dc:date>2021-08-09T03:24:38Z</dc:date>
    <item>
      <title>Databricks Views</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-views/m-p/16777#M10890</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;How do we find the definition of View in databricks?&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 03:24:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-views/m-p/16777#M10890</guid>
      <dc:creator>maheshwor</dc:creator>
      <dc:date>2021-08-09T03:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Views</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-views/m-p/16778#M10891</link>
      <description>&lt;P&gt;You can use the extended table description. For example, the following python code will print the current definition of the view: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;table_name = ""
df = spark.sql("describe table extended {}".format(table_name))
df.createOrReplaceTempView("view_desription")
&amp;nbsp;
data = spark.sql(
"""
select data_type 
from view_desription
where col_name = 'View Text'
&amp;nbsp;
"""
).collect()[0][0]
&amp;nbsp;
print(data)
&amp;nbsp;
&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 21:20:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-views/m-p/16778#M10891</guid>
      <dc:creator>Ryan_Chynoweth</dc:creator>
      <dc:date>2021-09-01T21:20:20Z</dc:date>
    </item>
  </channel>
</rss>

