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

Jason Dere commented on HIVE-9859:
----------------------------------

If you are unable to resolve the ">>" conflict, I'm not sure if substituting 
'->>' is the best approach here - we're trying to emulate the MySQL convention 
but cannot, and are forced to come up with a close substitute. But I would 
prefer to be a bit selective in what we allow as an operator symbol. Is there 
another convention from another DB that we can emulate? For example Teradata 
appears to have SHIFTLEFT()/SHIFTRIGHT() functions.

> Create bitwise left/right shift UDFs
> ------------------------------------
>
>                 Key: HIVE-9859
>                 URL: https://issues.apache.org/jira/browse/HIVE-9859
>             Project: Hive
>          Issue Type: Improvement
>          Components: UDF
>            Reporter: Alexander Pivovarov
>            Assignee: Alexander Pivovarov
>         Attachments: HIVE-9859.1.patch, HIVE-9859.2.patch, HIVE-9859.3.patch
>
>
> Signature:
> a << b
> a >> b
> a >>> b
> For example:
> {code}
> select 1 << 4, 8 >> 2, 8 >>> 2;
> OK
> 16   2   2
> {code}



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

Reply via email to