You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2023/08/07 10:58:00 UTC

[jira] [Updated] (HIVE-27094) Big numbers support for `conv` function

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

Stamatis Zampetakis updated HIVE-27094:
---------------------------------------
    Fix Version/s:     (was: 4.0.0)

I am removing the Fix version since the issue is still open. Please check the [JIRA guidelines|https://cwiki.apache.org/confluence/display/Hive/HowToContribute#HowToContribute-Guidelines] for more info on how to set this field correctly.


> Big numbers support for `conv` function 
> ----------------------------------------
>
>                 Key: HIVE-27094
>                 URL: https://issues.apache.org/jira/browse/HIVE-27094
>             Project: Hive
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 4.0.0
>            Reporter: Narek Karapetian
>            Assignee: Narek Karapetian
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> Add support for converting big numbers between different radixes, without an overflow.
> For example such a query:
> {code:java}
> SELECT
>   conv(9223372036854775807, 36, 16),
>   conv(9223372036854775807, 36, -16),
>   conv(-9223372036854775807, 36, 16),
>   conv(-9223372036854775807, 36, -16)
> FROM src tablesample (1 rows); {code}
>  Should give a correct result, like:
> {code:java}
> 12DDAC15F246BAF8C0D551AC7   12DDAC15F246BAF8C0D551AC7  D2253EA0DB945073F2AAE539   -12DDAC15F246BAF8C0D551AC7
>  {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)