<?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: Compound keys on Genie in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/compound-keys-on-genie/m-p/120615#M918</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/108623"&gt;@JYvesLimantour&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Genie struggles with composite keys by design. A few things that might help:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Clearly define your primary and foreign key relationships in Unity Catalog.&lt;/LI&gt;&lt;LI&gt;Add example SQL queries that include composite joins to give Genie better context.&lt;/LI&gt;&lt;LI&gt;Include explicit join instructions in your Genie space when needed.&lt;/LI&gt;&lt;LI&gt;For more complex joins, you could try using materialized views, predefined joins, or even things like surrogate keys or hashed keys&lt;/LI&gt;&lt;LI&gt;For complex joins, you could try using materialized views or predefined joins.&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Fri, 30 May 2025 14:44:30 GMT</pubDate>
    <dc:creator>SP_6721</dc:creator>
    <dc:date>2025-05-30T14:44:30Z</dc:date>
    <item>
      <title>Compound keys on Genie</title>
      <link>https://community.databricks.com/t5/generative-ai/compound-keys-on-genie/m-p/120267#M909</link>
      <description>&lt;P&gt;Is it just me or Genie´s generated SQL code failes to use composite keys -of the underlying related tables- as its default behavoir, regardless of the model having relationships declared explicitly.&lt;/P&gt;&lt;P&gt;Sometimes I have fixed this scenario by using an instruction -plain text-, sometimes by forcing the sql as an instruction but every time I have a new set of tables related by means of a composite key, Genie just won't use them as its default behavior. Then I have to juggle.&lt;/P&gt;&lt;P&gt;¿Are you experiencing this same behavior?&lt;/P&gt;&lt;P&gt;¿How are you tackling it?&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 21:21:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/compound-keys-on-genie/m-p/120267#M909</guid>
      <dc:creator>JYvesLimantour</dc:creator>
      <dc:date>2025-05-26T21:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Compound keys on Genie</title>
      <link>https://community.databricks.com/t5/generative-ai/compound-keys-on-genie/m-p/120615#M918</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/108623"&gt;@JYvesLimantour&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Genie struggles with composite keys by design. A few things that might help:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Clearly define your primary and foreign key relationships in Unity Catalog.&lt;/LI&gt;&lt;LI&gt;Add example SQL queries that include composite joins to give Genie better context.&lt;/LI&gt;&lt;LI&gt;Include explicit join instructions in your Genie space when needed.&lt;/LI&gt;&lt;LI&gt;For more complex joins, you could try using materialized views, predefined joins, or even things like surrogate keys or hashed keys&lt;/LI&gt;&lt;LI&gt;For complex joins, you could try using materialized views or predefined joins.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 30 May 2025 14:44:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/compound-keys-on-genie/m-p/120615#M918</guid>
      <dc:creator>SP_6721</dc:creator>
      <dc:date>2025-05-30T14:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compound keys on Genie</title>
      <link>https://community.databricks.com/t5/generative-ai/compound-keys-on-genie/m-p/120648#M919</link>
      <description>&lt;P&gt;What has been useful the most is adding sql instructions using composite keys.&lt;/P&gt;</description>
      <pubDate>Sat, 31 May 2025 14:24:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/compound-keys-on-genie/m-p/120648#M919</guid>
      <dc:creator>JYvesLimantour</dc:creator>
      <dc:date>2025-05-31T14:24:42Z</dc:date>
    </item>
  </channel>
</rss>

