-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Open
Labels
affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.fuzz/sqlancerimpact/wrong-resultmay-affects-5.4This bug maybe affects 5.4.x versions.This bug maybe affects 5.4.x versions.may-affects-6.1may-affects-6.5may-affects-7.1may-affects-7.5severity/majorsig/plannerSIG: PlannerSIG: Plannertype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Bug Report
1. Minimal reproduce step (Required)
CREATE TABLE t0(c0 INT , c2 INT DEFAULT 1);
INSERT INTO t0(c0) VALUES (2), (3), (4);
CREATE VIEW v0(c0) AS SELECT 5 FROM t0;
CREATE VIEW v1(c0) AS SELECT 6 FROM t0;
CREATE VIEW v2(c0) AS SELECT false FROM v0, t0;
SELECT SUM(v2.c0) FROM v2, t0, v0, v1; -- {0}
SELECT SUM(v2.c0) FROM v2, t0, v0, v1 WHERE INET6_ATON(7) IS NULL; -- {486}2. What did you expect to see? (Required)
The second query should not return more results than the first query.
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
| Release Version: v7.6.0-alpha-347-g598ccada40-dirty
Edition: Community
Git Commit Hash: 598ccada4065e4871bc5bce53a039cbb598a6d82
Git Branch: master
UTC Build Time: 2023-12-01 01:44:42
GoVersion: go1.21.0
Race Enabled: false
Check Table Before Drop: false
Store: unistore |Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.fuzz/sqlancerimpact/wrong-resultmay-affects-5.4This bug maybe affects 5.4.x versions.This bug maybe affects 5.4.x versions.may-affects-6.1may-affects-6.5may-affects-7.1may-affects-7.5severity/majorsig/plannerSIG: PlannerSIG: Plannertype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.