<?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: DLT - Unity catalog and volume - Dynamically access volume path in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dlt-unity-catalog-and-volume-dynamically-access-volume-path/m-p/92009#M38319</link>
    <description>&lt;P&gt;Works perfectly, thank you ! It's a shame the documentation does not detail that use case&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2024 08:51:21 GMT</pubDate>
    <dc:creator>erigaud</dc:creator>
    <dc:date>2024-09-27T08:51:21Z</dc:date>
    <item>
      <title>DLT - Unity catalog and volume - Dynamically access volume path</title>
      <link>https://community.databricks.com/t5/data-engineering/dlt-unity-catalog-and-volume-dynamically-access-volume-path/m-p/91819#M38273</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're using a dlt pipeline using an autoloader that reads from a volume inside Unity catalog&lt;/P&gt;&lt;P&gt;The path of the volume is /Volumes/&amp;lt;my-catalog&amp;gt;/...&lt;/P&gt;&lt;P&gt;How can I dynamically access the catalog value of the dlt pipeline to use it in the code ? I don't want to hard code the name of the catalog in the volume path since it's a parameter of the DLT pipeline, I'm assuming there is a way to retrieve it in the code ?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 07:49:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dlt-unity-catalog-and-volume-dynamically-access-volume-path/m-p/91819#M38273</guid>
      <dc:creator>erigaud</dc:creator>
      <dc:date>2024-09-26T07:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: DLT - Unity catalog and volume - Dynamically access volume path</title>
      <link>https://community.databricks.com/t5/data-engineering/dlt-unity-catalog-and-volume-dynamically-access-volume-path/m-p/91870#M38281</link>
      <description>&lt;P&gt;Hey erigaud,&lt;/P&gt;&lt;P&gt;You can pass information into a DLT pipleine in a similar way to how you can pass information in to a notebook when being run in a job. In the DLT pipeline case you can set values in the configuration.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/delta-live-tables/settings#parameterize-dataset-declarations-in-python-or-sql" target="_blank"&gt;Configure pipeline settings for Delta Live Tables - Azure Databricks | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;In this case this would look something like:&lt;BR /&gt;Databricks DAB file:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    resources:
      pipelines:
        pipeline_test:
          catalog: sandbox
          target: test
          configuration:
            volume_path: "banana"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;And then in the notebook that is being run:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;path_in_volume = spark.conf.get("volume_path")

spark.readStream.format("cloudFiles")
        .option("cloudFiles.format", "parquet")
        .load(
            f"\volumes\{path_in_volume}"
        )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 26 Sep 2024 10:41:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dlt-unity-catalog-and-volume-dynamically-access-volume-path/m-p/91870#M38281</guid>
      <dc:creator>ChrisLawford_n1</dc:creator>
      <dc:date>2024-09-26T10:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: DLT - Unity catalog and volume - Dynamically access volume path</title>
      <link>https://community.databricks.com/t5/data-engineering/dlt-unity-catalog-and-volume-dynamically-access-volume-path/m-p/92009#M38319</link>
      <description>&lt;P&gt;Works perfectly, thank you ! It's a shame the documentation does not detail that use case&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 08:51:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dlt-unity-catalog-and-volume-dynamically-access-volume-path/m-p/92009#M38319</guid>
      <dc:creator>erigaud</dc:creator>
      <dc:date>2024-09-27T08:51:21Z</dc:date>
    </item>
  </channel>
</rss>

