You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2018/12/23 02:48:28 UTC

[GitHub] gatorsmile commented on issue #21055: [SPARK-23693][SQL] Functions to generate UUIDs

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org