<?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 How do I programmatically get the database name in a DLT notebook? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-do-i-programmatically-get-the-database-name-in-a-dlt/m-p/15326#M9661</link>
    <description>&lt;P&gt;I have configured a database in the settings of my DLT pipeline. Is there a way to retrieve that value programmatically from within a notebook? I want to do something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spark.read.table(f"{database}.table")&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2022 18:19:58 GMT</pubDate>
    <dc:creator>Jennifer_Lu</dc:creator>
    <dc:date>2022-12-21T18:19:58Z</dc:date>
    <item>
      <title>How do I programmatically get the database name in a DLT notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-programmatically-get-the-database-name-in-a-dlt/m-p/15326#M9661</link>
      <description>&lt;P&gt;I have configured a database in the settings of my DLT pipeline. Is there a way to retrieve that value programmatically from within a notebook? I want to do something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spark.read.table(f"{database}.table")&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 18:19:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-programmatically-get-the-database-name-in-a-dlt/m-p/15326#M9661</guid>
      <dc:creator>Jennifer_Lu</dc:creator>
      <dc:date>2022-12-21T18:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I programmatically get the database name in a DLT notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-programmatically-get-the-database-name-in-a-dlt/m-p/15327#M9662</link>
      <description>&lt;P&gt;You could also set it as a config value as database:value, and then retrieve it in the notebook using spark.conf.get().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping they update DLT to support UC, and then allow us to set database/schema at the notebook level in @dlt.table(schema_name, table_name).&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 07:40:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-programmatically-get-the-database-name-in-a-dlt/m-p/15327#M9662</guid>
      <dc:creator>Jfoxyyc</dc:creator>
      <dc:date>2022-12-29T07:40:18Z</dc:date>
    </item>
  </channel>
</rss>

