<?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 Maintaining Order Consistency: Table Creation in Databricks SQL vs. DLT Pipeline in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/maintaining-order-consistency-table-creation-in-databricks-sql/m-p/66441#M7657</link>
    <description>&lt;P&gt;I have a CTE table with the below names as values. My objective is to create another table by concatenating all the rows from the CTE table in ascending order, resulting in the final output sequence: "Abi, Rahul, ram, Siva". When executing the query in DataBricks SQL, the expected outcome is achieved. However, when creating the table through the DLT pipeline, the order is altered, resulting in the following sequence: "Abi, Siva, ram, Rahul". Is there a solution to maintain the original order consistently, regardless of whether the table is created manually or through the DLT pipeline?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Archana_Mathan_0-1713354324971.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7077i64BA94BE9D083649/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Archana_Mathan_0-1713354324971.png" alt="Archana_Mathan_0-1713354324971.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2024 11:50:00 GMT</pubDate>
    <dc:creator>Archana_Mathan</dc:creator>
    <dc:date>2024-04-17T11:50:00Z</dc:date>
    <item>
      <title>Maintaining Order Consistency: Table Creation in Databricks SQL vs. DLT Pipeline</title>
      <link>https://community.databricks.com/t5/get-started-discussions/maintaining-order-consistency-table-creation-in-databricks-sql/m-p/66441#M7657</link>
      <description>&lt;P&gt;I have a CTE table with the below names as values. My objective is to create another table by concatenating all the rows from the CTE table in ascending order, resulting in the final output sequence: "Abi, Rahul, ram, Siva". When executing the query in DataBricks SQL, the expected outcome is achieved. However, when creating the table through the DLT pipeline, the order is altered, resulting in the following sequence: "Abi, Siva, ram, Rahul". Is there a solution to maintain the original order consistently, regardless of whether the table is created manually or through the DLT pipeline?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Archana_Mathan_0-1713354324971.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7077i64BA94BE9D083649/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Archana_Mathan_0-1713354324971.png" alt="Archana_Mathan_0-1713354324971.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 11:50:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/maintaining-order-consistency-table-creation-in-databricks-sql/m-p/66441#M7657</guid>
      <dc:creator>Archana_Mathan</dc:creator>
      <dc:date>2024-04-17T11:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining Order Consistency: Table Creation in Databricks SQL vs. DLT Pipeline</title>
      <link>https://community.databricks.com/t5/get-started-discussions/maintaining-order-consistency-table-creation-in-databricks-sql/m-p/66445#M7658</link>
      <description>&lt;P&gt;when writing, order is not guaranteed due to the nature of distributed processing.&lt;BR /&gt;If you want the order to be guaranteed, you should order it when reading the data.&lt;/P&gt;&lt;P&gt;Your query does not write any data, DLT does, that is the difference.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 11:59:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/maintaining-order-consistency-table-creation-in-databricks-sql/m-p/66445#M7658</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2024-04-17T11:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining Order Consistency: Table Creation in Databricks SQL vs. DLT Pipeline</title>
      <link>https://community.databricks.com/t5/get-started-discussions/maintaining-order-consistency-table-creation-in-databricks-sql/m-p/76912#M7659</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/103681"&gt;@Archana_Mathan&lt;/a&gt;,&amp;nbsp;did you solve this problem by any chance? I am having a similar problem maintaining the order of the dlt.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 14:32:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/maintaining-order-consistency-table-creation-in-databricks-sql/m-p/76912#M7659</guid>
      <dc:creator>standup1</dc:creator>
      <dc:date>2024-07-05T14:32:47Z</dc:date>
    </item>
  </channel>
</rss>

