-
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
executor: some unexpected behaviors of TopN #15718
Labels
Comments
What about the result when using tikv? |
mysql> SELECT `col_decimal` AND `col_varchar_1` AS field1, `col_decimal`, `col_varchar_1`, 1 FROM `table1000_int_autoinc` ORDER BY field1 LIMIT 10;
+--------+-------------+---------------+---+
| field1 | col_decimal | col_varchar_1 | 1 |
+--------+-------------+---------------+---+
| NULL | 7 | NULL | 1 |
| 0 | 54712 | r | 1 |
| NULL | NULL | 2 | 1 |
| 0 | 0 | 2 | 1 |
| 0 | NULL | w | 1 |
| 0 | 704905216 | j | 1 |
| 0 | 0 | o | 1 |
| 0 | 1514078208 | g | 1 |
| 0 | 7 | g | 1 |
| 0 | 53131 | 0 | 1 |
+--------+-------------+---------------+---+
10 rows in set, 75 warnings (0.06 sec)
mysql> SELECT `col_decimal` AND `col_varchar_1` AS field1, `col_decimal`, `col_varchar_1` FROM `table1000_int_autoinc` ORDER BY field1 LIMIT 10;
+--------+-------------+---------------+
| field1 | col_decimal | col_varchar_1 |
+--------+-------------+---------------+
| 0 | 7 | NULL |
| 0 | 54712 | r |
| 0 | NULL | 2 |
| 0 | 0 | 2 |
| 0 | NULL | w |
| 0 | 704905216 | j |
| 0 | 0 | o |
| 0 | 1514078208 | g |
| 0 | 7 | g |
| 0 | 53131 | 0 |
+--------+-------------+---------------+
10 rows in set, 76 warnings (0.06 sec) |
minor case: In my TiDB version(after fix the problom from expression evaltion):
In mysql5.7:
|
This was referenced Mar 31, 2020
Merged
This was referenced Apr 20, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug Report
1. What did you do?
Some logical operations in TopN executor are not working well.
1
column.1
column.2. What did you expect to see?
What MySQL does:
3. What version of TiDB are you using? (
tidb-server -V
or runselect tidb_version();
on TiDB)The text was updated successfully, but these errors were encountered: