[ 
https://issues.apache.org/jira/browse/HIVE-12721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15190521#comment-15190521
 ] 

Lenni Kuff commented on HIVE-12721:
-----------------------------------

[~jbeard] - Curious if the following would work for you:
{code}
 SELECT reflect("java.util.UUID", "randomUUID")
{code}

I do see the value of a first-class UUID built-in though, as reflect() may be 
restricted in some deployments due to security requirements. 

> Add UUID built in function
> --------------------------
>
>                 Key: HIVE-12721
>                 URL: https://issues.apache.org/jira/browse/HIVE-12721
>             Project: Hive
>          Issue Type: Improvement
>          Components: UDF
>            Reporter: Jeremy Beard
>            Assignee: Jeremy Beard
>         Attachments: HIVE-12721.patch
>
>
> A UUID function would be very useful for ETL jobs that need to generate 
> surrogate keys.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to