title: how can i create primary keys in spark scala automatically?
body: <pre><code>|Country|       DOB|     app_name|             contact|               email|              friend|                name|               phone|                 UID|
  +-------+----------+-------------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+
  |  India|25/03/1995|        [IMT]|[[India,123,Wrapp...|[romaahire11@gmai...|[Kashmira G, Bhar...|[Roma Ahire, Roma A]|[9028512546, 7276...|059fe797-c296-46d...|
  |  India|22/05/1978|[IMT, ozmott]|[[India,595,Wrapp...|[azeem@yahoo.com,...|[Prjakta W, Praja...|[Azeem, Azeem Seikh]|        [9785213564]|454bc185-5de0-427...|
  |  India|22/05/1978|[IMT, ozmott]|[[USA,789,Wrapped...|[praj@yahoo.com, ...|[Gouri Abhyankar,...|[Prajakta W, Praj...|        [9785213564]|91897109-9fd2-4f3...|
  +-------+----------+-------------+--------------------+--------------------+--------------------+--------------------+--------------------+-----------
  </code></pre>
  
  <p>above is my registerTempTable</p>