-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
wrong firstrow
aggregation result when there are regions returning empty result
#30923
wrong firstrow
aggregation result when there are regions returning empty result
#30923
Comments
I can reproduce it on master tidb with tikv and pd |
/assign @ichn-hu |
the error on master seems from the erroneous plan When given wrong result, the plan is:
And after a while, when it gives the correct result, the plan is
|
The root cause is
|
Possible solution: |
And this issue also exists when running the same query in TiDB + TiFlash. |
…ation (#11708) (#11744) ref #11708, close #11735, close pingcap/tidb#30923 Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Co-authored-by: xufei <xufei@pingcap.com> Co-authored-by: Yilin Chen <sticnarf@gmail.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
…ation (#11708) (#11741) ref #11708, close #11735, close pingcap/tidb#30923 Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn> Co-authored-by: xufei <xufei@pingcap.com> Co-authored-by: xufei <xufeixw@mail.ustc.edu.cn>
…ation (#11708) (#11743) ref #11708, close #11735, close pingcap/tidb#30923 Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Co-authored-by: xufei <xufei@pingcap.com>
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master
Also reproducible on 4.0.12.
The text was updated successfully, but these errors were encountered: