<?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: How to replace ${param} by :param in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-replace-param-by-param/m-p/126129#M47641</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/113050"&gt;@ZD&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Try something like that:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT *
FROM identifier(:source_path)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1753261481613.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/18397i06FB34E22EAE56E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1753261481613.png" alt="szymon_dybczak_0-1753261481613.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jul 2025 09:04:47 GMT</pubDate>
    <dc:creator>szymon_dybczak</dc:creator>
    <dc:date>2025-07-23T09:04:47Z</dc:date>
    <item>
      <title>How to replace ${param} by :param</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-replace-param-by-param/m-p/126084#M47625</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We previously used ${param} in our SQL queries:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT * FROM json.`${source_path}/file.json`&lt;/LI-CODE&gt;&lt;P&gt;However, this syntax is now deprecated.&amp;nbsp;The recommended approach is to use :param instead.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="param.PNG" style="width: 628px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/18390iA1D0F04077188DF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="param.PNG" alt="param.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when I attempt to replace ${param} with :param, I encounter the below error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT * FROM json.`:source_path/file.json`&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;java.net.URISyntaxException: Relative path in absolute URI: :source_path/file.json&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How can I correctly reference the parameter in this case?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 03:02:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-replace-param-by-param/m-p/126084#M47625</guid>
      <dc:creator>ZD</dc:creator>
      <dc:date>2025-07-23T03:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace ${param} by :param</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-replace-param-by-param/m-p/126110#M47632</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/113050"&gt;@ZD&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try this syntax in Your notebook for SQL:&lt;/P&gt;&lt;P&gt;%sql&lt;BR /&gt;declare _my_path = 'some_path';&lt;BR /&gt;select _my_path;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="radothede_1-1753253774061.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/18395iF0E02BFD7A745011/image-size/medium?v=v2&amp;amp;px=400" role="button" title="radothede_1-1753253774061.png" alt="radothede_1-1753253774061.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 06:56:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-replace-param-by-param/m-p/126110#M47632</guid>
      <dc:creator>radothede</dc:creator>
      <dc:date>2025-07-23T06:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace ${param} by :param</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-replace-param-by-param/m-p/126119#M47638</link>
      <description>&lt;P&gt;The question is how to use this declared variable between&amp;nbsp;backticks `_my_path` ?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT * FROM json.`_my_path/file.json`&lt;/LI-CODE&gt;&lt;P&gt;This does not work!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 08:33:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-replace-param-by-param/m-p/126119#M47638</guid>
      <dc:creator>ZD</dc:creator>
      <dc:date>2025-07-23T08:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace ${param} by :param</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-replace-param-by-param/m-p/126129#M47641</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/113050"&gt;@ZD&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Try something like that:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT *
FROM identifier(:source_path)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1753261481613.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/18397i06FB34E22EAE56E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1753261481613.png" alt="szymon_dybczak_0-1753261481613.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 09:04:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-replace-param-by-param/m-p/126129#M47641</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-07-23T09:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace ${param} by :param</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-replace-param-by-param/m-p/126135#M47643</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the proposed solution. However, this does not meet my business needs as it does not offer a dynamic approach for replacing the base path when having multiple files and formats.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 09:45:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-replace-param-by-param/m-p/126135#M47643</guid>
      <dc:creator>ZD</dc:creator>
      <dc:date>2025-07-23T09:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace ${param} by :param</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-replace-param-by-param/m-p/126140#M47644</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/113050"&gt;@ZD&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;But it does, you can use it in following way. Define 3 parameters:&lt;/P&gt;&lt;P&gt;- file_format&lt;/P&gt;&lt;P&gt;- base_path&lt;/P&gt;&lt;P&gt;- file_name&lt;/P&gt;&lt;P&gt;And then concatenate those parameters inside identifier clause:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;SELECT *
FROM identifier(:file_format || :base_path || :file_name)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1753265184836.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/18399iDE6764D5972728F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1753265184836.png" alt="szymon_dybczak_0-1753265184836.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Or maybe I didn't understand your requirments properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 10:06:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-replace-param-by-param/m-p/126140#M47644</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-07-23T10:06:41Z</dc:date>
    </item>
  </channel>
</rss>

