<?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: SELECT from table saved under path in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/select-from-table-saved-under-path/m-p/10566#M5729</link>
    <description>&lt;P&gt;Hi @Ajay Pandey​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When trying the first option I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/778iBFB6921D0A9B6E6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/772i01AA1D1D7EFED718/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2023 16:49:55 GMT</pubDate>
    <dc:creator>johnb1</dc:creator>
    <dc:date>2023-01-27T16:49:55Z</dc:date>
    <item>
      <title>SELECT from table saved under path</title>
      <link>https://community.databricks.com/t5/data-engineering/select-from-table-saved-under-path/m-p/10564#M5727</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saved a dataframe as a delta table with the following syntax:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;(test_df
  .write
  .format("delta")
  .mode("overwrite")
  .save(output_path)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How can I issue a SELECT statement on the table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I need to insert into [table_name] below?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM [table_name]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 14:04:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/select-from-table-saved-under-path/m-p/10564#M5727</guid>
      <dc:creator>johnb1</dc:creator>
      <dc:date>2023-01-27T14:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT from table saved under path</title>
      <link>https://community.databricks.com/t5/data-engineering/select-from-table-saved-under-path/m-p/10565#M5728</link>
      <description>&lt;P&gt;Hi @John B​&amp;nbsp;there is two way to access your delta table-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM delta.`your_delta_table_path`&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;df.write.format("delta").mode("overwrite").option("path", "your_path").saveAsTable("table_name")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now you can use your select query-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM [table_name]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 16:20:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/select-from-table-saved-under-path/m-p/10565#M5728</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2023-01-27T16:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT from table saved under path</title>
      <link>https://community.databricks.com/t5/data-engineering/select-from-table-saved-under-path/m-p/10566#M5729</link>
      <description>&lt;P&gt;Hi @Ajay Pandey​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When trying the first option I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/778iBFB6921D0A9B6E6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/772i01AA1D1D7EFED718/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 16:49:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/select-from-table-saved-under-path/m-p/10566#M5729</guid>
      <dc:creator>johnb1</dc:creator>
      <dc:date>2023-01-27T16:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT from table saved under path</title>
      <link>https://community.databricks.com/t5/data-engineering/select-from-table-saved-under-path/m-p/10567#M5730</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi @John B​&amp;nbsp;in the above code instead of your path variable put your absolute path. Please refer to snapshot-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/779i9144F6C57916DE4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 04:49:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/select-from-table-saved-under-path/m-p/10567#M5730</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2023-01-28T04:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT from table saved under path</title>
      <link>https://community.databricks.com/t5/data-engineering/select-from-table-saved-under-path/m-p/10568#M5731</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/780iA52C7038BD953090/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/774i9BD2FC7161223529/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 04:59:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/select-from-table-saved-under-path/m-p/10568#M5731</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2023-01-28T04:59:11Z</dc:date>
    </item>
  </channel>
</rss>

