Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-27094

Big numbers support for `conv` function

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.0.0
    • None
    • SQL

    Description

      Add support for converting big numbers between different radixes, without an overflow.

      For example such a query:

      SELECT
        conv(9223372036854775807, 36, 16),
        conv(9223372036854775807, 36, -16),
        conv(-9223372036854775807, 36, 16),
        conv(-9223372036854775807, 36, -16)
      FROM src tablesample (1 rows); 

       Should give a correct result, like:

      12DDAC15F246BAF8C0D551AC7   12DDAC15F246BAF8C0D551AC7  D2253EA0DB945073F2AAE539   -12DDAC15F246BAF8C0D551AC7
       

      Attachments

        Issue Links

          Activity

            People

              narekdw Narek Karapetian
              narekdw Narek Karapetian
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m