We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
order by
Please answer these questions before submitting your issue. Thanks!
create table a(b float); SELECT avg(2) FROM(SELECT min(c) FROM a JOIN(SELECT 1 c) d ORDER BY b) e;
+--------+ | avg(2) | +--------+ | 2.0000 | +--------+ 1 row in set (0.00 sec)
+--------+ | avg(2) | +--------+ | NULL | +--------+ 1 row in set (0.00 sec)
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | tidb_version() | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Release Version: v5.1.0-alpha-167-ga8ad9b7d3 Edition: Community Git Commit Hash: a8ad9b7d3aa53d0181422d2b22fa8d57b7d56db1 Git Branch: master UTC Build Time: 2021-06-05 07:04:28 GoVersion: go1.16.4 Race Enabled: false TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306 Check Table Before Drop: false | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec)
The text was updated successfully, but these errors were encountered:
It is because we transfer subquery to join, then the single line NULL result of the subquery disappears.
NULL
Sorry, something went wrong.
Note: Make Sure that 'component', and 'severity' labels are added Example for how to fill out the template: #20100
lzmhhh123
Successfully merging a pull request may close this issue.
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)
The text was updated successfully, but these errors were encountered: