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

create SHA2 UDF

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0, 2.0.0
    • UDF
    • None

    Description

      Calculates the SHA-2 family of hash functions (SHA-224, SHA-256, SHA-384, and SHA-512). The first argument is the cleartext string to be hashed. The second argument indicates the desired bit length of the result, which must have a value of 224, 256, 384, 512, or 0 (which is equivalent to 256). If either argument is NULL or the hash length is not one of the permitted values, the return value is NULL.

      MySQL also has SHA2 function https://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html#function_sha2

      Attachments

        1. HIVE-10644.3.patch
          29 kB
          Alexander Pivovarov
        2. HIVE-10644.2.patch
          29 kB
          Alexander Pivovarov
        3. HIVE-10644.1.patch
          28 kB
          Alexander Pivovarov

        Issue Links

          Activity

            People

              apivovarov Alexander Pivovarov
              apivovarov Alexander Pivovarov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: