<?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 to use identifier() as reference in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-use-identifier-as-reference/m-p/80460#M36022</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i am trying to build some dynamic sql scripts using this identifier() clause. This works fine when it is used with [ select * from identifier (mytable) ]. However, when I try to use this identifier as a reference to a foreign key table, it doesn’t work. For example,&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;CONSTRAINT&lt;/SPAN&gt; &lt;SPAN class=""&gt;s_t_fk&lt;/SPAN&gt; &lt;SPAN class=""&gt;FOREIGN&lt;/SPAN&gt; &lt;SPAN class=""&gt;KEY&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;fk1&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt; &lt;SPAN class=""&gt;REFERENCES&lt;/SPAN&gt; identifier(mytable).&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Any idea how to use an identifier() or a variable when referencing to table? I am using sql warehouse. Not spark sql. Thank you&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2024 02:15:52 GMT</pubDate>
    <dc:creator>standup1</dc:creator>
    <dc:date>2024-07-25T02:15:52Z</dc:date>
    <item>
      <title>How to use identifier() as reference</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-use-identifier-as-reference/m-p/80460#M36022</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i am trying to build some dynamic sql scripts using this identifier() clause. This works fine when it is used with [ select * from identifier (mytable) ]. However, when I try to use this identifier as a reference to a foreign key table, it doesn’t work. For example,&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;CONSTRAINT&lt;/SPAN&gt; &lt;SPAN class=""&gt;s_t_fk&lt;/SPAN&gt; &lt;SPAN class=""&gt;FOREIGN&lt;/SPAN&gt; &lt;SPAN class=""&gt;KEY&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;fk1&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt; &lt;SPAN class=""&gt;REFERENCES&lt;/SPAN&gt; identifier(mytable).&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Any idea how to use an identifier() or a variable when referencing to table? I am using sql warehouse. Not spark sql. Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 02:15:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-use-identifier-as-reference/m-p/80460#M36022</guid>
      <dc:creator>standup1</dc:creator>
      <dc:date>2024-07-25T02:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use identifier() as reference</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-use-identifier-as-reference/m-p/83793#M37002</link>
      <description>&lt;P&gt;Is this something you are working to resolve?&lt;/P&gt;&lt;P&gt;We would also like to use IDENTIFIER() with our REFERENCE(s)&amp;nbsp;&lt;SPAN&gt;CONSTRAINT(s)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;If not - is it possible to get an explaination why the limitation exists?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Aug 2024 12:32:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-use-identifier-as-reference/m-p/83793#M37002</guid>
      <dc:creator>stil</dc:creator>
      <dc:date>2024-08-21T12:32:56Z</dc:date>
    </item>
  </channel>
</rss>

