Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spark
- .readStream
- .select($"value".cast("string").alias("jsonData"))
- .select(from_json($"jsonData",jsonSchema).alias("payload"))
- .writeStream
- .trigger("1 seconds")
- .start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement