title: How to add a unique id column to a DataFrame, Apache Spark, Scala
body: <p>I have a DataFrame, that i want to join with another Dataframe, and then group by original rows, but the original rows do not have a unique id. How can i add a unique id or otherwise accomplish that goal.</p>