<?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 to read changes in streaming queries using change  data feed in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-read-changes-in-streaming-queries-using-change-data-feed/m-p/17834#M11770</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;# providing a starting version
spark.readStream.format("delta") \
  .option("readChangeFeed", "true") \
  .option("startingVersion", 0) \
  .table("myDeltaTable")
&amp;nbsp;
# providing a starting timestamp
spark.readStream.format("delta") \
  .option("readChangeFeed", "true") \
  .option("startingTimestamp", "2021-04-21 05:35:43") \
  .load("/pathToMyDeltaTable")
&amp;nbsp;
# not providing a starting version/timestamp will result in the latest snapshot being fetched first
spark.readStream.format("delta") \
  .option("readChangeFeed", "true") \
  .table("myDeltaTable")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;To get the change data while reading the table, set the option&amp;nbsp; readChangeFeedto&amp;nbsp;true.&lt;/P&gt;&lt;P&gt;The&amp;nbsp;startingVersion or&amp;nbsp; startingTimestamp&lt;/P&gt;&lt;P&gt;&amp;nbsp;are optional and if not provided the stream returns the latest snapshot of the table at the time of streaming as an&amp;nbsp;INSERT and future changes as change data. Options like rate limits (maxFilesPerTrigger&lt;/P&gt;&lt;P&gt;,maxBytesPerTrigger and&amp;nbsp;excludeRegex are also supported by change data.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jun 2021 13:01:00 GMT</pubDate>
    <dc:creator>User16826994223</dc:creator>
    <dc:date>2021-06-28T13:01:00Z</dc:date>
    <item>
      <title>How to read changes in streaming queries using change  data feed</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-read-changes-in-streaming-queries-using-change-data-feed/m-p/17833#M11769</link>
      <description />
      <pubDate>Mon, 28 Jun 2021 12:59:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-read-changes-in-streaming-queries-using-change-data-feed/m-p/17833#M11769</guid>
      <dc:creator>User16826994223</dc:creator>
      <dc:date>2021-06-28T12:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to read changes in streaming queries using change  data feed</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-read-changes-in-streaming-queries-using-change-data-feed/m-p/17834#M11770</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;# providing a starting version
spark.readStream.format("delta") \
  .option("readChangeFeed", "true") \
  .option("startingVersion", 0) \
  .table("myDeltaTable")
&amp;nbsp;
# providing a starting timestamp
spark.readStream.format("delta") \
  .option("readChangeFeed", "true") \
  .option("startingTimestamp", "2021-04-21 05:35:43") \
  .load("/pathToMyDeltaTable")
&amp;nbsp;
# not providing a starting version/timestamp will result in the latest snapshot being fetched first
spark.readStream.format("delta") \
  .option("readChangeFeed", "true") \
  .table("myDeltaTable")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;To get the change data while reading the table, set the option&amp;nbsp; readChangeFeedto&amp;nbsp;true.&lt;/P&gt;&lt;P&gt;The&amp;nbsp;startingVersion or&amp;nbsp; startingTimestamp&lt;/P&gt;&lt;P&gt;&amp;nbsp;are optional and if not provided the stream returns the latest snapshot of the table at the time of streaming as an&amp;nbsp;INSERT and future changes as change data. Options like rate limits (maxFilesPerTrigger&lt;/P&gt;&lt;P&gt;,maxBytesPerTrigger and&amp;nbsp;excludeRegex are also supported by change data.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 13:01:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-read-changes-in-streaming-queries-using-change-data-feed/m-p/17834#M11770</guid>
      <dc:creator>User16826994223</dc:creator>
      <dc:date>2021-06-28T13:01:00Z</dc:date>
    </item>
  </channel>
</rss>

