<?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 Convert a Managed Table to Streaming Table in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/convert-a-managed-table-to-streaming-table/m-p/133284#M49777</link>
    <description>&lt;P&gt;Hi&lt;BR /&gt;I have applied transformations on a set of streaming tables and saved it as a managed table....&lt;BR /&gt;&lt;BR /&gt;How can i change the Managed table to a Streaming table with minimal changes&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ZD&lt;/P&gt;</description>
    <pubDate>Mon, 29 Sep 2025 17:16:03 GMT</pubDate>
    <dc:creator>zensardigital</dc:creator>
    <dc:date>2025-09-29T17:16:03Z</dc:date>
    <item>
      <title>Convert a Managed Table to Streaming Table</title>
      <link>https://community.databricks.com/t5/data-engineering/convert-a-managed-table-to-streaming-table/m-p/133284#M49777</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;I have applied transformations on a set of streaming tables and saved it as a managed table....&lt;BR /&gt;&lt;BR /&gt;How can i change the Managed table to a Streaming table with minimal changes&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ZD&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 17:16:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/convert-a-managed-table-to-streaming-table/m-p/133284#M49777</guid>
      <dc:creator>zensardigital</dc:creator>
      <dc:date>2025-09-29T17:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a Managed Table to Streaming Table</title>
      <link>https://community.databricks.com/t5/data-engineering/convert-a-managed-table-to-streaming-table/m-p/133286#M49778</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/187763"&gt;@zensardigital&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Are you talking about Declarative pipelines (former DLT)? If so, I&amp;nbsp;guess the simplest way is to just change the definition in code of DLT and re-run pipeline.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 17:19:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/convert-a-managed-table-to-streaming-table/m-p/133286#M49778</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-09-29T17:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a Managed Table to Streaming Table</title>
      <link>https://community.databricks.com/t5/data-engineering/convert-a-managed-table-to-streaming-table/m-p/133289#M49780</link>
      <description>&lt;P&gt;I am just writing the dataframe to delta table.....Are you suggesting me to first define a STREAMING TABLE (using the DLT definition) and then save the dataframe into that table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 17:33:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/convert-a-managed-table-to-streaming-table/m-p/133289#M49780</guid>
      <dc:creator>zensardigital</dc:creator>
      <dc:date>2025-09-29T17:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a Managed Table to Streaming Table</title>
      <link>https://community.databricks.com/t5/data-engineering/convert-a-managed-table-to-streaming-table/m-p/133291#M49782</link>
      <description>&lt;P&gt;Nope, at first I thought that you're using DLT. I think you're confusing things. Managed table means that your table is managed - so if you delete it you delete metadata along with data. You can also have an external table which when you execute delete statement will delete metadata from catalog (but the data won't be removed).&lt;/P&gt;&lt;P&gt;Back to your quesiton. So in your case, you probably saved you table using batch approach:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;df_transformed.write.format("delta").saveAsTable("my_db.my_table")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Then the easiest way convert it to streaming table would be to rewrite DataFrameWriter part:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;  df_transformed.writeStream
    .format("delta")
    .outputMode("append")        # or "complete" depending on aggregation
    .option("checkpointLocation", "/mnt/checkpoints/my_table_cp")  
    .toTable("my_db.my_table")   # creates or writes to managed streaming table&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;But keep in mind that not all operations are supported in spark streaming, so it's possible that if you have many complex transformation you won't be able to use streaming in that case.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 18:33:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/convert-a-managed-table-to-streaming-table/m-p/133291#M49782</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-09-29T18:33:40Z</dc:date>
    </item>
  </channel>
</rss>

