Created
December 21, 2021 00:52
-
-
Save 1ambda/e1e58bb2dcbc13126b86d0f460051ae2 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
def persistPartition(partitionedRows): | |
for row in partitionedRows: | |
parsed = row.asDict() | |
# DO something here | |
dfPartitioned.foreachPartition(persistPartition) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment