Streaming: Read CSV as Bounded Stream

Medium
Streaming
CSV
readStream
Amazon
Airbnb

Streaming: Read CSV as Bounded Stream

orders.csv is delivered as a stream of files. Read it with spark.readStream.format('csv') and return all rows sorted by order_id. This simulates a file-based streaming source where new files arrive over time.

Browser Engine: Evaluates PySpark DataFrame & SQL logic locally in Pyodide WebAssembly.

Input data

0 DataFrames

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.