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

不被支持的语法 能通过测试 #26

Open
yangruijing90 opened this issue Nov 29, 2024 · 5 comments
Open

不被支持的语法 能通过测试 #26

yangruijing90 opened this issue Nov 29, 2024 · 5 comments

Comments

@yangruijing90
Copy link

SELECT AVG(CAST(SUM(CASE WHEN 任务点完成状态 = '已完成' THEN 1 ELSE 0 END) AS DOUBLE)) / COUNT(DISTINCT 任务点名称) FROM 任务点完成进度d87c5ac7f0424193bebac3c629eeabeb_07_2_1732876707416 WHERE 任务点类型 = '视频' GROUP BY 学生姓名
执行结果:
SQL 错误 [1064] [42000]: Getting analyzing error from line 1, column 72 to line 1, column 142. Detail message: Unsupported nest aggregation function inside aggregation.

@yangruijing90
Copy link
Author

starrocks 数据库的

@melin
Copy link
Owner

melin commented Dec 2, 2024

用的什么版本? 测试可以解析
image

@yangruijing90
Copy link
Author

3.2版本

@yangruijing90
Copy link
Author

image
这个也是通过监测的,但是sql执行失败
SELECT AVG(完成任务点个数) AS 平均完成情况 FROM ( SELECT 学生姓名, SUM(CASE WHEN任务点完成状态= '已完成' THEN 1 ELSE 0 END) AS 完成任务点个数 FROM任务点完成进度3dbfe67792f3b7d124786c246597d5f2_07_2_1733279991191WHERE任务点类型 = '视频' GROUP BY 学生姓名)

@yangruijing90
Copy link
Author

melin

3.2版本

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

2 participants