<?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: Issue with Lateral Column Alias (LCA) in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/issue-with-lateral-column-alias-lca/m-p/81496#M1463</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;But in this case I would have to qualify the column that was defined in the select because it is the one that was no longer used when adding a table in the join that has exactly the same column name.&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;BR /&gt;I don't know if there is a standard identifier that can be used to indicate that the column I am referencing is the LCA.&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;BR /&gt;I got around it by adding a 'local -' prefix to the name of each column, but I found Databricks' behavior to be too risky in this case, since including a new column in a table can change the behavior of existing queries.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2024 13:16:37 GMT</pubDate>
    <dc:creator>paulocorrea</dc:creator>
    <dc:date>2024-08-01T13:16:37Z</dc:date>
    <item>
      <title>Issue with Lateral Column Alias (LCA)</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/issue-with-lateral-column-alias-lca/m-p/81172#M1458</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I have a query using LCA.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;When referencing another table that has a column with the same name as the column used as LCA, the behavior of the query changes and it starts referencing the table column instead of the column that is already in the select and was previously used.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; Is there a way to ensure that the column used will always be the one previously defined in the select itself?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paulocorrea_0-1722351334548.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/9997i386772F6CA97EE18/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="paulocorrea_0-1722351334548.png" alt="paulocorrea_0-1722351334548.png" /&gt;&lt;/span&gt;&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="paulocorrea_1-1722351445234.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/9998i62DC30F456827758/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="paulocorrea_1-1722351445234.png" alt="paulocorrea_1-1722351445234.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 15:06:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/issue-with-lateral-column-alias-lca/m-p/81172#M1458</guid>
      <dc:creator>paulocorrea</dc:creator>
      <dc:date>2024-07-30T15:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Lateral Column Alias (LCA)</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/issue-with-lateral-column-alias-lca/m-p/81496#M1463</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;But in this case I would have to qualify the column that was defined in the select because it is the one that was no longer used when adding a table in the join that has exactly the same column name.&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;BR /&gt;I don't know if there is a standard identifier that can be used to indicate that the column I am referencing is the LCA.&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;BR /&gt;I got around it by adding a 'local -' prefix to the name of each column, but I found Databricks' behavior to be too risky in this case, since including a new column in a table can change the behavior of existing queries.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 13:16:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/issue-with-lateral-column-alias-lca/m-p/81496#M1463</guid>
      <dc:creator>paulocorrea</dc:creator>
      <dc:date>2024-08-01T13:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Lateral Column Alias (LCA)</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/issue-with-lateral-column-alias-lca/m-p/81499#M1464</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;See this other example.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The only change was the inclusion of a new table with columns with the same name as the columns defined in the select:&lt;/SPAN&gt;&lt;/SPAN&gt;&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="paulocorrea_0-1722518837765.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/10084i83696247D7BF5C94/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="paulocorrea_0-1722518837765.png" alt="paulocorrea_0-1722518837765.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 13:28:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/issue-with-lateral-column-alias-lca/m-p/81499#M1464</guid>
      <dc:creator>paulocorrea</dc:creator>
      <dc:date>2024-08-01T13:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Lateral Column Alias (LCA)</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/issue-with-lateral-column-alias-lca/m-p/84049#M1499</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9" target="_blank"&gt;@Kaniz_Fatma,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;we had the same problem as &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/86268"&gt;@paulocorrea&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;That's why it would be correct for to me to throw an error on ambiguous columns and the LCA could/must be addressed with a default identifier.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 10:59:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/issue-with-lateral-column-alias-lca/m-p/84049#M1499</guid>
      <dc:creator>ClausStier</dc:creator>
      <dc:date>2024-08-23T10:59:21Z</dc:date>
    </item>
  </channel>
</rss>

