pingcap/tidb

Percentile Function in Tidb

Open

#46,985 建立於 2023年9月14日

在 GitHub 查看
 (11 留言) (1 反應) (0 負責人)Go (6,186 fork)batch import
compatibility-oraclegood first issuesig/executiontype/compatibilitytype/feature-request

倉庫指標

Star
 (40,090 star)
PR 合併指標
 (平均合併 14天 4小時) (30 天內合併 346 個 PR)

描述

Bug Report

perncentile on a column is not working SELECT PERCENTILE_CONT(0.75) WITHIN GROUP (ORDER BY column_name) OVER () AS Q3 FROM YourTable; This is the query which is supported in both postgresql and mysql but it is throwing an error in TIDB

2. What did you expect to see? (Required)

result

3. What did you see instead (Required)

You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 2 column 41 near "(ORDER BY _org_unit_id) OVER () AS Q1

4. What is your TiDB version? (Required)

7.3.0

貢獻者指南