<?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 Queries with streaming sources must be executed with writeStream.start(); in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/queries-with-streaming-sources-must-be-executed-with-writestream/m-p/11539#M6487</link>
    <description>&lt;P&gt;When I try to perform some transformations on a streaming data , I get Queries with streaming sources must be executed with writeStream.start(); error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My aim is to do a lookup for every column in each rows in the streaming data . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;steaming_table=spark.readStream.format("delta").table("tableName")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;df = (steaming_table.transform(decode_func("a config dic","query to get the lookup value from another table ")))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where decode_func is the function where I have a custom logic written &lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 14:19:38 GMT</pubDate>
    <dc:creator>Bency</dc:creator>
    <dc:date>2022-08-02T14:19:38Z</dc:date>
    <item>
      <title>Queries with streaming sources must be executed with writeStream.start();</title>
      <link>https://community.databricks.com/t5/data-engineering/queries-with-streaming-sources-must-be-executed-with-writestream/m-p/11539#M6487</link>
      <description>&lt;P&gt;When I try to perform some transformations on a streaming data , I get Queries with streaming sources must be executed with writeStream.start(); error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My aim is to do a lookup for every column in each rows in the streaming data . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;steaming_table=spark.readStream.format("delta").table("tableName")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;df = (steaming_table.transform(decode_func("a config dic","query to get the lookup value from another table ")))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where decode_func is the function where I have a custom logic written &lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 14:19:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/queries-with-streaming-sources-must-be-executed-with-writestream/m-p/11539#M6487</guid>
      <dc:creator>Bency</dc:creator>
      <dc:date>2022-08-02T14:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Queries with streaming sources must be executed with writeStream.start();</title>
      <link>https://community.databricks.com/t5/data-engineering/queries-with-streaming-sources-must-be-executed-with-writestream/m-p/11540#M6488</link>
      <description>&lt;P&gt;Hi @Bency Mathew​&amp;nbsp;You can use forEachBatch to perform the custom logic on each microbatch. Please refer to below document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/structured-streaming/foreach.html#perform-streaming-writes-to-arbitrary-data-sinks-with-structured-streaming-and-foreachbatch" target="test_blank"&gt;https://docs.databricks.com/structured-streaming/foreach.html#perform-streaming-writes-to-arbitrary-data-sinks-with-structured-streaming-and-foreachbatch&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 12:44:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/queries-with-streaming-sources-must-be-executed-with-writestream/m-p/11540#M6488</guid>
      <dc:creator>Noopur_Nigam</dc:creator>
      <dc:date>2022-09-30T12:44:41Z</dc:date>
    </item>
  </channel>
</rss>

