<?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 pass task name as parameter in scheduled job that will be used as a schema name in query in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-pass-task-name-as-parameter-in-scheduled-job-that-will-be/m-p/99790#M40100</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select * from identifier(:catalog||'.schema.table')&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The :catalog is a parameter within DBSQL&lt;/P&gt;&lt;P&gt;Replace schema and table with actual names&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2024 16:22:38 GMT</pubDate>
    <dc:creator>Zach_Jacobson23</dc:creator>
    <dc:date>2024-11-22T16:22:38Z</dc:date>
    <item>
      <title>How to pass task name as parameter in scheduled job that will be used as a schema name in query</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-pass-task-name-as-parameter-in-scheduled-job-that-will-be/m-p/71064#M34238</link>
      <description>&lt;P&gt;I want to run a parametrized sql query in a task. Query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;select * from {{client}}.catalog.table&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with client value being {{task.name}}.&lt;/P&gt;&lt;P&gt;if client is a string parameter, it is replaced with quotes which throws an error.&lt;BR /&gt;if table is a dropdown list parameter, it throws: T&lt;SPAN&gt;he following parameter values are invalid: [{'key': 'client', 'value': 'randomclient'}].&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I solve?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 00:21:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-pass-task-name-as-parameter-in-scheduled-job-that-will-be/m-p/71064#M34238</guid>
      <dc:creator>jeroaranda</dc:creator>
      <dc:date>2024-05-30T00:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass task name as parameter in scheduled job that will be used as a schema name in query</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-pass-task-name-as-parameter-in-scheduled-job-that-will-be/m-p/99790#M40100</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select * from identifier(:catalog||'.schema.table')&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The :catalog is a parameter within DBSQL&lt;/P&gt;&lt;P&gt;Replace schema and table with actual names&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 16:22:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-pass-task-name-as-parameter-in-scheduled-job-that-will-be/m-p/99790#M40100</guid>
      <dc:creator>Zach_Jacobson23</dc:creator>
      <dc:date>2024-11-22T16:22:38Z</dc:date>
    </item>
  </channel>
</rss>

