Skip to content

MySQL function not implemented: NTILE #23017

Closed
Closed

Description

@dengn

Function Information

Function Name: NTILE
Category: window

MySQL Function Description

MySQL NTILE window function:
NTILE(N) - Divides a partition into N groups (buckets), assigns each row in the partition its bucket number.

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 20 near "

Test Case

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

MySQL Documentation

Request

Please implement the NTILE 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. modified the milestones: MO-202511, MO-202602 on Feb 3, 2026
  4. assigned and unassigned on Feb 25, 2026
  5. assigned and unassigned on Feb 26, 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/p0windowfunction

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions