Skip to content

[Bug]: 3.0-dev lacks function and window compatibility updates #24185

Closed

Description

@LeftHandCold

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

3.0-dev

Commit ID

d1e78d8

Other Environment Information

- Hardware parameters: N/A (branch-compare audit)
- OS type: Darwin
- Others:
  - Compared `base/main` vs `base/3.0-dev`
  - Audit window: 2025-10-01 .. 2026-04-24

Actual Behavior

3.0-dev still diverges from main on several built-in and window-function compatibility surfaces. After removing time/date overlap, the main missing items in this bucket are: PERCENT_RANK(), CUME_DIST(), AES_ENCRYPT() / AES_DECRYPT(), and ELT().

Expected Behavior

3.0-dev should expose the same non-time built-in/window-function surface as main.

Steps to Reproduce

1. Compare `base/main` and `base/3.0-dev` for PRs `#23764`, `#23762`, `#23639`, `#23841`.
2. Verify missing surfaces on `3.0-dev`:
   - `git grep -n 'PERCENT_RANK' base/3.0-dev -- pkg/sql/parsers/dialect/mysql/mysql_sql.y` -> no match
   - `git grep -n 'CUME_DIST' base/3.0-dev -- pkg/sql/parsers/dialect/mysql/mysql_sql.y` -> no match
   - `git grep -nE 'AES_ENCRYPT|AES_DECRYPT' base/3.0-dev -- pkg/sql/plan/function/list_builtIn.go` -> no match
   - `git cat-file -e base/3.0-dev:test/distributed/cases/function/func_cume_dist.sql` -> missing
   - `git cat-file -e base/3.0-dev:test/distributed/cases/function/func_string_aes.test` -> missing
   - `git cat-file -e base/3.0-dev:test/distributed/cases/function/func_string_elt.test` -> missing
3. Try representative SQL on `3.0-dev`, for example:
   - `select percent_rank() over(order by a) from t;`
   - `select cume_dist() over(order by a) from t;`
   - `select aes_decrypt(aes_encrypt('text','key'),'key');`
   - `select elt(2, 'a', 'b');`

Additional information

Main-only reference commits:

  • c29d141d8a feat: support PERCENT_RANK window function (#23764)
  • 416d612443 feat: implement CUME_DIST window function (#23762)
  • 24f65c3e2a implement AES_ENCRYPT() and AES_DECRYPT() (#23639)
  • 44c285d619 fix: ELT() function fully compatible with MySQL (#23841)

Time/date functions such as GET_FORMAT() are no longer tracked here and have been moved into #24189.

Activity

  1. changed the title [-][Bug]: 3.0-dev lacks several main-branch function and window compatibility updates[/-] [+][Bug]: 3.0-dev lacks function and window compatibility updates[/+] on Apr 24, 2026
  2. added a commit that references this issue on Apr 28, 2026
    b082b95
  3. ghost closed this as completedon May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions