Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# dfListingJdbc\
.select(spark_partition_id().alias("partitionId"))\
.groupBy("partitionId")\
.count()\
.show()
+-----------+-----+
|partitionId|count|
+-----------+-----+
| 1| 1|
| 4| 4862|
| 2| 2|
+-----------+-----+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment