Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
read_stream-write_stream-json
mbruns
Jun 10th, 2022
2,469
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
SPARK
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
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
Public Pastes
Untitled
2 min ago | 19.36 KB
Untitled
21 min ago | 0.22 KB
Untitled
1 hour ago | 7.85 KB
Untitled
1 hour ago | 0.03 KB
Untitled
2 hours ago | 19.38 KB
Untitled
2 hours ago | 0.04 KB
Untitled
4 hours ago | 16.24 KB
Untitled
5 hours ago | 5.55 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!