-
Notifications
You must be signed in to change notification settings - Fork 45
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
[2023 Case Failed]: aggregation-func & group-by & complex-sub-query #38
Labels
Comments
总结:
|
miniob-2023/src/observer/sql/operator/groupby_physical_operator.cpp Lines 48 to 66 in 19ab2fb
miniob-2023/src/observer/sql/expr/expression.cpp Lines 245 to 260 in 19ab2fb
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
base on:
description:
先做的 aggr func,没有 group by,这个时候对空数据行的聚集函数运算结果应该是 0 或者 null
后来有一次提测 group by 挂了:
整理后
与 mysql 对比测试发现,带 group by 的情况下,空数据行应该不返回结果
但我们直接把它改成了空数据行的情况下返回 RECORD_EOF
然后出现了新的问题:
由于子查询中聚集函数对空数据行进行计算直接返回 RECORD_EOF,父查询处理谓词的时候直接向上返回 RECORD_EOF,所以少处理了一部分数据
The text was updated successfully, but these errors were encountered: