Skip to content

Conversation

alpass163
Copy link

@alpass163 alpass163 commented Sep 15, 2025

This commit introduces a comprehensive suite of 36 new built-in scalar functions for data manipulation. These functions cover hashing (including HMAC), encoding/decoding (Base64, Hex, Endian, IEEE754), and binary operations, significantly enhancing the platform's data processing capabilities.

The newly added functions are categorized as follows:

  1. Base64 Encoding Functions

    • TO_BASE64
    • FROM_BASE64
    • TO_BASE64URL
    • FROM_BASE64URL
    • TO_BASE32
    • FROM_BASE32
  2. Hex Encoding Functions

    • TO_HEX
    • FROM_HEX
  3. Binary Functions

    • REVERSE
    • LPAD
    • RPAD
  4. Integer Encoding Functions

    • TO_BIG_ENDIAN_32
    • FROM_BIG_ENDIAN_32
    • TO_BIG_ENDIAN_64
    • FROM_BIG_ENDIAN_64
    • TO_LITTLE_ENDIAN_32
    • FROM_LITTLE_ENDIAN_32
    • TO_LITTLE_ENDIAN_64
    • FROM_LITTLE_ENDIAN_64
  5. Floating-point Encoding Functions

    • TO_IEEE754_32
    • FROM_IEEE754_32
    • TO_IEEE754_64
    • FROM_IEEE754_64
  6. Hashing Functions

    • SHA256
    • SHA512
    • SHA1
    • MD5
    • CRC32
    • SPOOKY_HASH_V2_32
    • SPOOKY_HASH_V2_64
    • XXHASH64
    • MURMUR3
  7. HMAC Hashing Functions

    • HMAC_MD5
    • HMAC_SHA1
    • HMAC_SHA256
    • HMAC_SHA512

Description

Content1 ...

Content2 ...

Content3 ...


This PR has:

  • been self-reviewed.
    • concurrent read
    • concurrent write
    • concurrent read and write
  • added documentation for new or modified features or behaviors.
  • added Javadocs for most classes and all non-trivial methods.
  • added or updated version, license, or notice information
  • added comments explaining the "why" and the intent of the code wherever would not be obvious
    for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold
    for code coverage.
  • added integration tests.
  • been tested in a test IoTDB cluster.

Key changed/added classes (or packages if there are too many classes) in this PR

This commit introduces a comprehensive suite of 36 new built-in scalar functions for data manipulation. These functions cover hashing (including HMAC), encoding/decoding (Base64, Hex, Endian, IEEE754), and binary operations, significantly enhancing the platform's data processing capabilities.

The newly added functions are categorized as follows:

1.  **Base64 Encoding Functions**
    * TO_BASE64
    * FROM_BASE64
    * TO_BASE64URL
    * FROM_BASE64URL
    * TO_BASE32
    * FROM_BASE32

2.  **Hex Encoding Functions**
    * TO_HEX
    * FROM_HEX

3.  **Binary Functions**
    * REVERSE
    * LPAD
    * RPAD

4.  **Integer Encoding Functions**
    * TO_BIG_ENDIAN_32
    * FROM_BIG_ENDIAN_32
    * TO_BIG_ENDIAN_64
    * FROM_BIG_ENDIAN_64
    * TO_LITTLE_ENDIAN_32
    * FROM_LITTLE_ENDIAN_32
    * TO_LITTLE_ENDIAN_64
    * FROM_LITTLE_ENDIAN_64

5.  **Floating-point Encoding Functions**
    * TO_IEEE754_32
    * FROM_IEEE754_32
    * TO_IEEE754_64
    * FROM_IEEE754_64

6.  **Hashing Functions**
    * SHA256
    * SHA512
    * SHA1
    * MD5
    * CRC32
    * SPOOKY_HASH_V2_32
    * SPOOKY_HASH_V2_64
    * XXHASH64
    * MURMUR3

7.  **HMAC Hashing Functions**
    * HMAC_MD5
    * HMAC_SHA1
    * HMAC_SHA256
    * HMAC_SHA512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant