-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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 <[email protected]> Co-authored-by: xufei <[email protected]> Co-authored-by: Yilin Chen <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
…ation (#11708) (#11741) ref #11708, close #11735, close pingcap/tidb#30923 Signed-off-by: ti-srebot <[email protected]> Signed-off-by: xufei <[email protected]> Co-authored-by: xufei <[email protected]> Co-authored-by: xufei <[email protected]>
…ation (#11708) (#11743) ref #11708, close #11735, close pingcap/tidb#30923 Signed-off-by: ti-srebot <[email protected]> Co-authored-by: xufei <[email protected]>
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: