Subject: Spark structured streaming: periodically refresh static data frame

Let me fix my mistake :)
What I suggested in that earlier thread does not work. The streaming query
that joins a streaming dataset with a batch view, does not correctly pick
up when the view is updated. It works only when you restart the query. That
- stop the query
- recreate the dataframes,
- start the query on the new dataframe using the same checkpoint location
as the previous query

Note that you dont need to restart the whole process/cluster/application,
just restart the query in the same process/cluster/application. This should
be very fast (within a few seconds). So, unless you have latency SLAs of 1
second, you can periodically restart the query without restarting the

Apologies for my misdirections in that earlier thread. Hope this helps.


On Wed, Feb 14, 2018 at 2:57 AM, Appu K <[EMAIL PROTECTED]> wrote: