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
Please answer these questions before submitting your issue. Thanks!
CREATE TABLE `tbl_3` ( `col_15` json DEFAULT NULL, `col_16` json DEFAULT NULL, `col_17` json DEFAULT NULL, `col_18` json DEFAULT NULL, `col_19` json DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; insert into tbl_3 values("[1,1,1]", "66", "false", "-22", "-44"); insert into tbl_3 values("77", "33", "323232323.3232323", "-22", NULL); select /*+ agg_to_cop() stream_agg() */ max( col_17 ) aggCol from (select * from tbl_3 where not( tbl_3.col_16 between null and 'piHWbXSXTQVt' ) or tbl_3.col_17 not in ( "[3, 2, 1]" , "false" ) ) ordered_tbl limit 396 for update;
MySQL8
+--------+ | aggCol | +--------+ | false | +--------+ 1 row in set, 2 warnings (0.00 sec)
TiDB
+-------------------+ | aggCol | +-------------------+ | 323232323.3232323 | +-------------------+ 1 row in set, 1 warning (0.00 sec)
master
The text was updated successfully, but these errors were encountered:
mysql> select /*+ agg_to_cop() stream_agg() */ max( col_17 ) aggCol from (select * from tbl_3 where not( tbl_3.col_16 between null and 'piHWbXSXTQVt' ) or tbl_3.col_17 not in ( "[3, 2, 1]" , "false" ) ) ordered_tbl limit 396 for update; +-------------------+ | aggCol | +-------------------+ | 323232323.3232323 | +-------------------+ 1 row in set, 3 warnings (0.00 sec) mysql> select version(); +-----------+ | version() | +-----------+ | 5.7.23 | +-----------+ 1 row in set (0.01 sec)
Sorry, something went wrong.
confirm it has been fixed
xiongjiwei
No branches or pull requests
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
MySQL8
3. What did you see instead (Required)
TiDB
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: