gatorsmile commented on issue #21055: [SPARK-23693][SQL] Functions to generate 
UUIDs
URL: https://github.com/apache/spark/pull/21055#issuecomment-449610602
 
 
   @tashoyan Based on my understanding, you want to get the unique IDs after 
the self union. 
   ```
       val df1 = spark.range(1, 10).selectExpr("id", "uuid()")
       df1.union(df1).show()
       df1.union(df1).explain(true)
   ```
   
   To solve your issue, you just need to add a custom rule to update the 
initial seed instead of changing the way we implement UUID.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to