Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文档反馈:TiDB 的 ONLY_FULL_GROUP_BY 目前也不支持 order by 中的字段不在 distinct 中 #15765

Open
GJXAIOU opened this issue Dec 15, 2023 · 0 comments

Comments

@GJXAIOU
Copy link

GJXAIOU commented Dec 15, 2023

File: /release-7.5/functions-and-operators/aggregate-group-by-functions.md
影响:目前参考 v5.4 版本到 7.5 版本中都是允许的,但是应该是不允许的。

image
目前在 V5.4 版本中复现:pingcap/tidb#4254 场景,是报错:
ERROR 3065 (HY000): Expression #1 of ORDER BY clause is not in SELECT list, references column 'test.t.c' which is not in SELECT list; this is incompatible with DISTINCT

但是文档还是显示这种是合规的,应该是:目前在 TIDB 中也是不合规的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant