I have data coming as a stream from kafka topic . In my dataframe I have "Average" column and I want to create new column by performing some calculation on "Average" column.
Currently I have written something like -
rdd_get_chills = df_avg_tmp.rdd.map(lambda line:get_wind_chills(line))
But it's throwing error -
pyspark.sql.utils.AnalysisException: Queries with streaming sources must be executed with writeStream.start();