-
-
Save yjshen/8ba23ebddbc4d4799d2fde85f52483ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df.selectExpr("CAST(__key AS STRING)", "CAST(value AS STRING)") | |
.write | |
.format("pulsar") | |
.option("service.url", "pulsar://localhost:6650") | |
.option("topic", "topic1") | |
.save() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment