Read metrics_topic with a processing-time trigger of 5 seconds. Write to
orders_trigger_topic using writeStream.format('kafka').
Return the stream DataFrame.
These DataFrames are passed to solve(spark, dfs). Access one with dfs['name'].
Browser engine
Loading Python editor…
Click Run to try the sample cases, or Submit to check the hidden cases. First run caches the browser Python engine (~8–15s once); all code stays on your device.