Writing data as JSON array from Spark Structured Streaming

前端 未结 0 1889
不知归路
不知归路 2021-01-22 14:20

I have to write data from Spark Structure streaming as JSON Array, I have tried using below code:

df.selectExpr("to_json(struct(*)) AS value").toJSON


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题