-
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
mpp: wrong planner behaviors when tidb_opt_agg_push_down
and tidb_enforce_mpp
enabled
#34465
Comments
/assign @fixdb |
@solotzg: GitHub didn't allow me to assign the following users: fixdb. Note that only pingcap members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Affect version |
… outer joins When we push down aggregate past outer join, the top count aggregate assumed that the partial count aggregate always return non-null value. But in case of outer joins when the aggregate is pushed down to the null generating side of the outer join, the input for the final aggregate may be nullable. Before this patch, the final count aggregate always assume its input is not nullable, hence during aggregate elimimation, the optimizer rewrote aggregate into a plain column of null-generating side of outer join, which led to the wrong result. Close pingcap#34465
… outer joins (pingcap#34468) close pingcap#34465 (cherry picked from commit 43984d8)
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Run with tiflash
Run without tiflash
2. What did you expect to see? (Required)
3. What did you see instead (Required)
with tiflash
ERROR 1105 (HY000): other error for mpp stream: DB::Exception: Cannot convert NULL value to non-Nullable type
without tiflash
4. What is your TiFlash/TiDB/TiKV version? (Required)
master、release-5.4
The text was updated successfully, but these errors were encountered: