-
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
Projection push down to tikv leads to incorrect result when subquery and agg #51874
Closed
Tracked by
#51876
Labels
affects-6.1
affects-6.5
affects-7.1
affects-7.5
severity/major
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
Comments
tidb_opt_projection_push_down is not set by default. Not critical issue. |
yibin87
changed the title
Projection push down to tikv leads to incorrect result
Projection push down to tikv leads to incorrect result when subquery and agg
Mar 19, 2024
11 tasks
/assign @yibin87 |
ti-chi-bot
bot
added
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.1
may-affects-6.5
may-affects-7.1
may-affects-7.5
labels
Mar 19, 2024
13 tasks
/affects 7.5 |
/affects-7.5 |
/label may-affects-5.4 |
/may-affects-5.4 |
/affect-7.5 |
/label affects-7.5 |
/label affects-7.1 |
/label affects-6.5 |
/label affects-6.1 |
/label may-affects-5.4 |
/unlabel may-affects-5.4 |
/label affects-5.4 |
ti-chi-bot
bot
added
affects-5.4
This bug affects 5.4.x versions.
and removed
may-affects-5.4
This bug maybe affects 5.4.x versions.
labels
Mar 20, 2024
/remove-label affects-5.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-6.1
affects-6.5
affects-7.1
affects-7.5
severity/major
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
set tidb_opt_projection_push_down = 'on';
CREATE TABLE t(a INT, b INT);
INSERT INTO t VALUES (5,6), (1,7);
CREATE TABLE t2(i INT);
INSERT INTO t2 VALUES (10),(100);
SELECT (SELECT SUM(a) OVER () FROM t2 LIMIT 1) FROM t;
2. What did you expect to see? (Required)
10
2
3. What did you see instead (Required)
NULL
NULL
4. What is your TiDB version? (Required)
| Release Version: v7.4.0-alpha-2012-gfe01d11df6-dirty
Edition: Community
Git Commit Hash: fe01d11
Git Branch: div_increase_prec
UTC Build Time: 2024-03-15 08:10:07
The text was updated successfully, but these errors were encountered: