<?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 does V-ORDER exactly work? in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-does-V-ORDER-exactly-work/m-p/4363654#M6089</link>
    <description>&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/delta-optimization-and-v-order?tabs=sparksql" target="_blank"&gt;Delta Lake table optimization and V-Order - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2025 16:33:05 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2025-01-14T16:33:05Z</dc:date>
    <item>
      <title>How does V-ORDER exactly work?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-does-V-ORDER-exactly-work/m-p/4363592#M6088</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Which is de equivalent of running V-ORDER with visual interface in Spark SQL?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="amaaiia_0-1736869589166.png"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1225986i0EC8FABDD4A406C1/image-size/medium?v=v2&amp;amp;px=400" alt="amaaiia_0-1736869589166.png" title="amaaiia_0-1736869589166.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I mean, the equivalent of OPTIMIZE would be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;query = f"OPTIMIZE {table_name} ZORDER BY ({col1}, {col2})"
spark.sql(query)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VACUUM:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;query = f"VACUUM {table_name} RETAIN {retention_hours} HOURS"
spark.sql(query)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which would be de equivalent of running V-ORDER?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 15:48:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-does-V-ORDER-exactly-work/m-p/4363592#M6088</guid>
      <dc:creator>amaaiia</dc:creator>
      <dc:date>2025-01-14T15:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: How does V-ORDER exactly work?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-does-V-ORDER-exactly-work/m-p/4363654#M6089</link>
      <description>&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/delta-optimization-and-v-order?tabs=sparksql" target="_blank"&gt;Delta Lake table optimization and V-Order - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 16:33:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-does-V-ORDER-exactly-work/m-p/4363654#M6089</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-01-14T16:33:05Z</dc:date>
    </item>
  </channel>
</rss>

