-
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
Inconsistent query result after changing the order of cte statements #51873
Comments
Reproduce this case on Master:
|
/type regression |
Regression Anaylsis |
/found customer |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Query A:
Query B:
2. What did you expect to see? (Required)
The same result for Query A and Query B.
3. What did you see instead (Required)
Query A:
Empty set, 1 warning (0.00 sec)
Query B:
+---------------+
| portfolioCode |
+---------------+
| 1 |
+---------------+
1 row in set, 1 warning (0.01 sec)
The warning shows
disable dynamic pruning due to h2 has no global stats
, and after collecting global stats of table h2, the result of Query A is the same as Query B.4. What is your TiDB version? (Required)
v6.5.3
The text was updated successfully, but these errors were encountered: