<?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 Dynamic Spark Structured Streaming: Handling Stream-Stream Joins with Changing in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/dynamic-spark-structured-streaming-handling-stream-stream-joins/m-p/52276#M1052</link>
    <description>&lt;P&gt;I want to create a simple application using Spark Structured Streaming to alert users (via email, SMS, etc.) when stock price data meets certain requirements.&lt;/P&gt;&lt;P&gt;I have a data stream:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;data_stream&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;However, I'm strugging to address the main issue: how users can modify the requirements (settings) whenever they wish.&lt;/P&gt;&lt;P&gt;I'm considering using another stream called&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;settings_stream&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and then joining the two streams. But, I've realized that joining these streams will result in numerous unnecessary alerts to users. For instance, when users change settings, the new requirements will filter through all old price data (not just the last price), similarly when new price data arrives.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Price | Timestamp&lt;/P&gt;&lt;P&gt;1 | 00:00&lt;BR /&gt;2 | 00:01 3 | 00:05&lt;/P&gt;&lt;P&gt;With new settings: price &amp;gt;= 1 =&amp;gt; 3 emails&lt;/P&gt;&lt;P&gt;Or:&lt;/P&gt;&lt;P&gt;PriceRule | Timestamp&lt;/P&gt;&lt;P&gt;=1 | 00:01&lt;/P&gt;&lt;P&gt;=2 | 00:05&lt;/P&gt;&lt;P&gt;With the latest price: price = 1 =&amp;gt; 2 emails&lt;/P&gt;&lt;P&gt;How can I handle this situation? Or could you provide some solutions for this use case besides stream-stream join?&lt;/P&gt;&lt;P&gt;P.S.: My project must utilize Kafka and Spark Streaming/Structured Streaming.&lt;/P&gt;&lt;P&gt;Thank you all so much!"&lt;/P&gt;</description>
    <pubDate>Thu, 16 Nov 2023 13:40:28 GMT</pubDate>
    <dc:creator>tranbau</dc:creator>
    <dc:date>2023-11-16T13:40:28Z</dc:date>
    <item>
      <title>Dynamic Spark Structured Streaming: Handling Stream-Stream Joins with Changing</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/dynamic-spark-structured-streaming-handling-stream-stream-joins/m-p/52276#M1052</link>
      <description>&lt;P&gt;I want to create a simple application using Spark Structured Streaming to alert users (via email, SMS, etc.) when stock price data meets certain requirements.&lt;/P&gt;&lt;P&gt;I have a data stream:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;data_stream&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;However, I'm strugging to address the main issue: how users can modify the requirements (settings) whenever they wish.&lt;/P&gt;&lt;P&gt;I'm considering using another stream called&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;settings_stream&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and then joining the two streams. But, I've realized that joining these streams will result in numerous unnecessary alerts to users. For instance, when users change settings, the new requirements will filter through all old price data (not just the last price), similarly when new price data arrives.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Price | Timestamp&lt;/P&gt;&lt;P&gt;1 | 00:00&lt;BR /&gt;2 | 00:01 3 | 00:05&lt;/P&gt;&lt;P&gt;With new settings: price &amp;gt;= 1 =&amp;gt; 3 emails&lt;/P&gt;&lt;P&gt;Or:&lt;/P&gt;&lt;P&gt;PriceRule | Timestamp&lt;/P&gt;&lt;P&gt;=1 | 00:01&lt;/P&gt;&lt;P&gt;=2 | 00:05&lt;/P&gt;&lt;P&gt;With the latest price: price = 1 =&amp;gt; 2 emails&lt;/P&gt;&lt;P&gt;How can I handle this situation? Or could you provide some solutions for this use case besides stream-stream join?&lt;/P&gt;&lt;P&gt;P.S.: My project must utilize Kafka and Spark Streaming/Structured Streaming.&lt;/P&gt;&lt;P&gt;Thank you all so much!"&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 13:40:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/dynamic-spark-structured-streaming-handling-stream-stream-joins/m-p/52276#M1052</guid>
      <dc:creator>tranbau</dc:creator>
      <dc:date>2023-11-16T13:40:28Z</dc:date>
    </item>
  </channel>
</rss>

