<?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 Python project || write write_micro_batch in structure streaming in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/python-project-write-write-micro-batch-in-structure-streaming/m-p/73977#M34692</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;We are in progress of developing a framework in python using datatbricks-connect in VSO,&lt;/P&gt;&lt;P&gt;However when we are trying to run micro batches in the foreachbatch function it is giving us error message saying that "&lt;STRONG&gt;few objects are&amp;nbsp;not serializable: cannot pickle 'ClientThreadLocals' object"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Although we are able to run writestream without for each batch.. but since we have to perform transformations / DQ checks and metadata entries created in different table.. we are trying to encapsulate all these in same micro batch.&lt;/P&gt;&lt;P&gt;I tried removing all these eventhough just a simple code with&amp;nbsp;foreachbatch function is not working in VSO using&amp;nbsp;datatbricks-connect.&lt;/P&gt;&lt;P&gt;Please provide your inputs and help.. thanks&lt;/P&gt;&lt;P&gt;#databricks-connect&lt;/P&gt;&lt;P&gt;#python-project&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2024 05:10:24 GMT</pubDate>
    <dc:creator>manish1987c</dc:creator>
    <dc:date>2024-06-14T05:10:24Z</dc:date>
    <item>
      <title>Python project || write write_micro_batch in structure streaming</title>
      <link>https://community.databricks.com/t5/data-engineering/python-project-write-write-micro-batch-in-structure-streaming/m-p/73977#M34692</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;We are in progress of developing a framework in python using datatbricks-connect in VSO,&lt;/P&gt;&lt;P&gt;However when we are trying to run micro batches in the foreachbatch function it is giving us error message saying that "&lt;STRONG&gt;few objects are&amp;nbsp;not serializable: cannot pickle 'ClientThreadLocals' object"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Although we are able to run writestream without for each batch.. but since we have to perform transformations / DQ checks and metadata entries created in different table.. we are trying to encapsulate all these in same micro batch.&lt;/P&gt;&lt;P&gt;I tried removing all these eventhough just a simple code with&amp;nbsp;foreachbatch function is not working in VSO using&amp;nbsp;datatbricks-connect.&lt;/P&gt;&lt;P&gt;Please provide your inputs and help.. thanks&lt;/P&gt;&lt;P&gt;#databricks-connect&lt;/P&gt;&lt;P&gt;#python-project&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 05:10:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/python-project-write-write-micro-batch-in-structure-streaming/m-p/73977#M34692</guid>
      <dc:creator>manish1987c</dc:creator>
      <dc:date>2024-06-14T05:10:24Z</dc:date>
    </item>
  </channel>
</rss>

