You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Alexander Pivovarov (JIRA)" <ji...@apache.org> on 2015/03/18 02:50:38 UTC

[jira] [Updated] (HIVE-9859) Create bitwise shift left/right UDFs

     [ https://issues.apache.org/jira/browse/HIVE-9859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Pivovarov updated HIVE-9859:
--------------------------------------
    Description: 
Signature:
a << b
a >> b
a >>> b

For example:
{code}
select 1 << 4, 8 >> 2, 8 >>> 2;
OK
16   2   2
{code}

  was:
Signature:
shift_left(a bigint, b int) : bigint

For example:
{code}
select shift_left(1, 4), shift_right(8, 2);
OK
16   2
{code}


> Create bitwise shift left/right 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
>
> 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)