<?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: Can you z-order a table with Spark Structured Streaming? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/can-you-z-order-a-table-with-spark-structured-streaming/m-p/36042#M26028</link>
    <description>&lt;P&gt;And this is the setting to turn on auto optimization&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Optimized writes can be enabled at the table or session level using the following settings:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P&gt;Table setting:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;delta.autoOptimize.optimizeWrite&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;SparkSession setting:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;spark.databricks.delta.optimizeWrite.enabled&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Wed, 28 Jun 2023 23:26:51 GMT</pubDate>
    <dc:creator>Brian2</dc:creator>
    <dc:date>2023-06-28T23:26:51Z</dc:date>
    <item>
      <title>Can you z-order a table with Spark Structured Streaming?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-you-z-order-a-table-with-spark-structured-streaming/m-p/35978#M26011</link>
      <description>&lt;P&gt;Hi, can you do zordering as part of a structured streaming ingestion?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 22:32:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-you-z-order-a-table-with-spark-structured-streaming/m-p/35978#M26011</guid>
      <dc:creator>christian_acuna</dc:creator>
      <dc:date>2023-06-28T22:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can you z-order a table with Spark Structured Streaming?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-you-z-order-a-table-with-spark-structured-streaming/m-p/36017#M26016</link>
      <description>&lt;P&gt;You can zorder by reading in the structured streaming data to a delta table and the zorder the part that is needed on the written delta table.&amp;nbsp; So you essentially leverage foreach batch writing out the structured stream to a delta table in small micro batches and then zorder the data after each batch.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 23:07:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-you-z-order-a-table-with-spark-structured-streaming/m-p/36017#M26016</guid>
      <dc:creator>peterlandis</dc:creator>
      <dc:date>2023-06-28T23:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can you z-order a table with Spark Structured Streaming?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-you-z-order-a-table-with-spark-structured-streaming/m-p/36036#M26026</link>
      <description>&lt;P&gt;You can also turn on auto optimize writes for your table or session.&amp;nbsp; This is especially good if your table is partitioned.&amp;nbsp; You should also turn on auto compaction to help control the size of your files.&lt;/P&gt;&lt;P&gt;Auto compaction can be enabled at the table or session level using the following settings:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P&gt;Table property:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;delta.autoOptimize.autoCompact&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;SparkSession setting:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;spark.databricks.delta.autoCompact.enabled&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 28 Jun 2023 23:25:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-you-z-order-a-table-with-spark-structured-streaming/m-p/36036#M26026</guid>
      <dc:creator>Brian2</dc:creator>
      <dc:date>2023-06-28T23:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can you z-order a table with Spark Structured Streaming?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-you-z-order-a-table-with-spark-structured-streaming/m-p/36042#M26028</link>
      <description>&lt;P&gt;And this is the setting to turn on auto optimization&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Optimized writes can be enabled at the table or session level using the following settings:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P&gt;Table setting:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;delta.autoOptimize.optimizeWrite&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;SparkSession setting:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;spark.databricks.delta.optimizeWrite.enabled&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 28 Jun 2023 23:26:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-you-z-order-a-table-with-spark-structured-streaming/m-p/36042#M26028</guid>
      <dc:creator>Brian2</dc:creator>
      <dc:date>2023-06-28T23:26:51Z</dc:date>
    </item>
  </channel>
</rss>

