<?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 Delta Table to Spark Streaming to Synapse Table in azure databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/delta-table-to-spark-streaming-to-synapse-table-in-azure/m-p/19597#M13154</link>
    <description>&lt;P&gt;Is there a way to keep my synapse database always in sync with latest data from delta  table, My synapse database I believe doesn't support  the stream as sink, can i get any workaround &lt;/P&gt;</description>
    <pubDate>Fri, 25 Jun 2021 16:15:10 GMT</pubDate>
    <dc:creator>User16826994223</dc:creator>
    <dc:date>2021-06-25T16:15:10Z</dc:date>
    <item>
      <title>Delta Table to Spark Streaming to Synapse Table in azure databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-table-to-spark-streaming-to-synapse-table-in-azure/m-p/19597#M13154</link>
      <description>&lt;P&gt;Is there a way to keep my synapse database always in sync with latest data from delta  table, My synapse database I believe doesn't support  the stream as sink, can i get any workaround &lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 16:15:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-table-to-spark-streaming-to-synapse-table-in-azure/m-p/19597#M13154</guid>
      <dc:creator>User16826994223</dc:creator>
      <dc:date>2021-06-25T16:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Table to Spark Streaming to Synapse Table in azure databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-table-to-spark-streaming-to-synapse-table-in-azure/m-p/19598#M13155</link>
      <description>&lt;P&gt;You could try to keep the data in sync by appending the new data dataframe in a forEachBatch on your write stream, this method allows for arbitrary ways to write data, you can connect to the Datawarehouse with jdbc if necessary:with your batch function being something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;df = spark.readStream\
          .format('delta')\
          .load(input_path)
&amp;nbsp;
df_write = df.writeStream \
            .format("delta") \
            .foreachBatch(batch_write_jdbc) \
            .option("checkpointLocation", chekpoint) \
            .start("noop")\&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Noop is dummy operation of write  which will not actually write but starte the stream process which call the batch function that writes using jdbc&lt;/P&gt;&lt;P&gt;with your batch function being something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;def batch_write_jdbc (df, batchId):
  
    df = df.anytransformation
    df.write.jdbc(jdbc_url, table=schema_name + "." + table_name, mode="append", properties=connection_properties)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 16:17:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-table-to-spark-streaming-to-synapse-table-in-azure/m-p/19598#M13155</guid>
      <dc:creator>User16826994223</dc:creator>
      <dc:date>2021-06-25T16:17:48Z</dc:date>
    </item>
  </channel>
</rss>

