Skip to content

MySQL function not implemented: RANDOM_BYTES #23023

Closed

Description

@dengn

Function Information

Function Name: RANDOM_BYTES
Category: encryption

MySQL Function Description

MySQL RANDOM_BYTES function:
RANDOM_BYTES(len) - Returns a binary string of len random bytes.

Expected Behavior

Expected behavior:
According to MySQL documentation, the function should return correct results.

Current Behavior in MatrixOne

This function is not implemented in MatrixOne.

Error Message: (20105, "not supported: function or operator 'random_bytes'")

Test Case

SELECT HEX(RANDOM_BYTES(16)) AS result1

MySQL Documentation

Request

Please implement the RANDOM_BYTES function to improve MySQL compatibility.

Activity

  1. added
    priority/p0
    kind/compatibility
    ai-easy
    on Nov 21, 2025
  2. added this to the MO-202511 milestone on Nov 21, 2025
  3. added a commit that references this issue on Nov 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ai-easykind/compatibilitypriority/p0

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions