Skip to content

MySQL function not implemented: PERCENT_RANK #23018

Closed

Description

@dengn

Function Information

Function Name: PERCENT_RANK
Category: window

MySQL Function Description

MySQL PERCENT_RANK window function:
PERCENT_RANK() - Returns the percentage of partition values less than the value in the current row.

Expected Behavior

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

Current Behavior in MatrixOne

This function is not implemented in MatrixOne.

Error Message: (1064, 'SQL parser error: You have an error in your SQL syntax; check the manual that corresponds to your MatrixOne server version for the right syntax to use. syntax error at line 1 column 26 near "

Test Case

SELECT PERCENT_RANK() OVER (ORDER BY val) AS result FROM (SELECT 1 AS val UNION SELECT 2 UNION SELECT 3) AS t

MySQL Documentation

Request

Please implement the PERCENT_RANK 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
    priority/p1
    and removed
    priority/p0
    on Dec 23, 2025
  4. modified the milestones: MO-202511, MO-202602 on Feb 3, 2026
  5. assigned and unassigned on Feb 28, 2026
  6. Repository owner unassigned on Mar 2, 2026
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/p1windowfunction

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions