<?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: ENABLE CHANGE DATA FEED FOR EXISTING DELTA-TABLE in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/enable-change-data-feed-for-existing-delta-table/m-p/11605#M6553</link>
    <description>&lt;P&gt;'delta.enableChangeDataFeed' have to be without quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; spark.sql("ALTER TABLE delta_training.onaudience_dpm SET TBLPROPERTIES (delta.enableChangeDataFeed = true)").show()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 13:27:05 GMT</pubDate>
    <dc:creator>Hubert-Dudek</dc:creator>
    <dc:date>2022-08-02T13:27:05Z</dc:date>
    <item>
      <title>ENABLE CHANGE DATA FEED FOR EXISTING DELTA-TABLE</title>
      <link>https://community.databricks.com/t5/data-engineering/enable-change-data-feed-for-existing-delta-table/m-p/11604#M6552</link>
      <description>&lt;P&gt;I have a delta table already created, now I want to enable the change data feed. I read that I have to set &lt;B&gt;delta.enableChangeDataFeed &lt;/B&gt;property to&lt;B&gt; true. &lt;/B&gt;But however, this cannot be done using the &lt;B&gt;Scala API&lt;/B&gt;. I tried using this but it didn't work. I am using the &lt;B&gt;OS version (delta)&lt;/B&gt; for performing all these operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really appreciate any help you can provide.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;val ddl_query = """CREATE TABLE if not exists delta_training.delta_table
                   USING DELTA
                   LOCATION '/Users/data-partner-merge/src/main/resources/delta/dpm/base'
                   """
 //creation of table
 spark.sql(ddl_query)
&amp;nbsp;
 spark.sql(" ALTER TABLE delta_training.onaudience_dpm SET TBLPROPERTIES ('delta.enableChangeDataFeed' = true )").show()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;EDIT 1: As mentioned by a user, I tried using this as well, but still no changes come into action.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;spark.sql(" ALTER TABLE delta_training.onaudience_dpm SET TBLPROPERTIES (delta.enableChangeDataFeed = true)")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 10:21:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/enable-change-data-feed-for-existing-delta-table/m-p/11604#M6552</guid>
      <dc:creator>yatharthmahesh</dc:creator>
      <dc:date>2022-08-02T10:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: ENABLE CHANGE DATA FEED FOR EXISTING DELTA-TABLE</title>
      <link>https://community.databricks.com/t5/data-engineering/enable-change-data-feed-for-existing-delta-table/m-p/11605#M6553</link>
      <description>&lt;P&gt;'delta.enableChangeDataFeed' have to be without quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; spark.sql("ALTER TABLE delta_training.onaudience_dpm SET TBLPROPERTIES (delta.enableChangeDataFeed = true)").show()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 13:27:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/enable-change-data-feed-for-existing-delta-table/m-p/11605#M6553</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-08-02T13:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: ENABLE CHANGE DATA FEED FOR EXISTING DELTA-TABLE</title>
      <link>https://community.databricks.com/t5/data-engineering/enable-change-data-feed-for-existing-delta-table/m-p/11606#M6554</link>
      <description>&lt;P&gt;I tried but that doesn't work&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 15:44:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/enable-change-data-feed-for-existing-delta-table/m-p/11606#M6554</guid>
      <dc:creator>yatharthmahesh</dc:creator>
      <dc:date>2022-08-02T15:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: ENABLE CHANGE DATA FEED FOR EXISTING DELTA-TABLE</title>
      <link>https://community.databricks.com/t5/data-engineering/enable-change-data-feed-for-existing-delta-table/m-p/11607#M6555</link>
      <description>&lt;P&gt;Can you try in plain SQL instead of spark.sql() API? According to the docs, this is the command to do it :&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;ALTER&lt;/I&gt;&lt;/B&gt;&lt;I&gt; &lt;/I&gt;&lt;B&gt;&lt;I&gt;TABLE&lt;/I&gt;&lt;/B&gt;&lt;I&gt; myDeltaTable &lt;/I&gt;&lt;B&gt;&lt;I&gt;SET&lt;/I&gt;&lt;/B&gt;&lt;I&gt; TBLPROPERTIES (delta.enableChangeDataFeed = &lt;/I&gt;&lt;B&gt;&lt;I&gt;true&lt;/I&gt;&lt;/B&gt;&lt;I&gt;)&lt;/I&gt;&lt;/P&gt;&lt;P&gt;docs &lt;A href="https://docs.databricks.com/delta/delta-change-data-feed.html#enable-change-data-feed" target="test_blank"&gt;https://docs.databricks.com/delta/delta-change-data-feed.html#enable-change-data-feed&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 17:15:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/enable-change-data-feed-for-existing-delta-table/m-p/11607#M6555</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-08-30T17:15:41Z</dc:date>
    </item>
  </channel>
</rss>

