You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
mysql -h172.16.5.85 -P52324 -uroot -D subquery_agg10000
2. What did you expect to see? (Required)
SELECT ( table1 . `col_decimal` , table1 . `col_decimal` ) IN (SELECT SUBQUERY3_t1 . `col_int` AS SUBQUERY3_field1 , SUM( SUBQUERY3_t2 . `col_int_not_null_key` ) AS SUBQUERY3_field2 FROM `DD` AS SUBQUERY3_t1 RIGHT OUTER JOIN `F` AS SUBQUERY3_t2 ON (SUBQUERY3_t2 . `col_varchar_key` = SUBQUERY3_t1 . `col_varchar_64` ) GROUP BY SUBQUERY3_field1 ) AS field3 FROM `BB` AS table1 group by 1;
+--------+
| field3 |
+--------+
| NULL |
| 0 |
+--------+
2 rows in set (0.07 sec)
SELECT ( 2, 2 ) NOT IN ( SELECT SUBQUERY1_t1 . `col_tinyint` AS SUBQUERY1_field1 , SUBQUERY1_t1 . `col_tinyint` AS SUBQUERY1_field2 FROM `F` AS SUBQUERY1_t1 RIGHT OUTER JOIN `BB` AS SUBQUERY1_t2 ON (SUBQUERY1_t2 . `col_varchar_64` = SUBQUERY1_t1 . `col_varchar_key` ) GROUP BY SUBQUERY1_field1 , SUBQUERY1_field2 ) AS field1 FROM `BB` AS table1 LEFT JOIN ( SELECT SUBQUERY2_t1 . * FROM `C` AS SUBQUERY2_t1 LEFT JOIN `G` AS SUBQUERY2_t2 ON (SUBQUERY2_t2 . `col_char_64_not_null` = SUBQUERY2_t1 . `col_varchar_key` ) ) AS table2 ON (table2 . `col_decimal_40_key` = table1 . `col_decimal_not_null_key` ) WHERE table1 . `col_varchar_64_not_null` <> SOME ( SELECT DISTINCT SUBQUERY3_t1 . `col_char_64` AS SUBQUERY3_field1 FROM `L` AS SUBQUERY3_t1 INNER JOIN ( `T` AS SUBQUERY3_t2 INNER JOIN `E` AS SUBQUERY3_t3 ON (SUBQUERY3_t3 . `col_bigint_not_null` = SUBQUERY3_t2 . `pk` )) ON (SUBQUERY3_t3 . `col_char_64` = SUBQUERY3_t2 . `col_varchar_key` ) WHERE SUBQUERY3_t3 . `col_varchar_64_not_null` <= table1 . `col_varchar_64` AND SUBQUERY3_t1 . `col_decimal_40` >= table1 . `col_int` ) OR table1 . `col_varchar_key` = 'i' OR table1 . `pk` != table1 . `pk` ;
+--------+
| field1 |
+--------+
| NULL |
| NULL |
| NULL |
| NULL |
| NULL |
| NULL |
+--------+
6 rows in set (0.04 sec)
3. What did you see instead (Required)
mysql> SELECT ( table1 . `col_decimal` , table1 . `col_decimal` ) IN (SELECT SUBQUERY3_t1 . `col_int` AS SUBQUERY3_field1 , SUM( SUBQUERY3_t2 . `col_int_not_null_key` ) AS SUBQUERY3_field2 FROM `DD` AS SUBQUERY3_t1 RIGHT OUTER JOIN `F` AS SUBQUERY3_t2 ON (SUBQUERY3_t2 . `col_varchar_key` = SUBQUERY3_t1 . `col_varchar_64` ) GROUP BY SUBQUERY3_field1 ) AS field3 FROM `BB` AS table1 group by 1;
+--------+
| field3 |
+--------+
| 0 |
+--------+
1 row in set (0.08 sec)
SELECT ( 2, 2 ) NOT IN ( SELECT SUBQUERY1_t1 . `col_tinyint` AS SUBQUERY1_field1 , SUBQUERY1_t1 . `col_tinyint` AS SUBQUERY1_field2 FROM `F` AS SUBQUERY1_t1 RIGHT OUTER JOIN `BB` AS SUBQUERY1_t2 ON (SUBQUERY1_t2 . `col_varchar_64` = SUBQUERY1_t1 . `col_varchar_key` ) GROUP BY SUBQUERY1_field1 , SUBQUERY1_field2 ) AS field1 FROM `BB` AS table1 LEFT JOIN ( SELECT SUBQUERY2_t1 . * FROM `C` AS SUBQUERY2_t1 LEFT JOIN `G` AS SUBQUERY2_t2 ON (SUBQUERY2_t2 . `col_char_64_not_null` = SUBQUERY2_t1 . `col_varchar_key` ) ) AS table2 ON (table2 . `col_decimal_40_key` = table1 . `col_decimal_not_null_key` ) WHERE table1 . `col_varchar_64_not_null` <> SOME ( SELECT DISTINCT SUBQUERY3_t1 . `col_char_64` AS SUBQUERY3_field1 FROM `L` AS SUBQUERY3_t1 INNER JOIN ( `T` AS SUBQUERY3_t2 INNER JOIN `E` AS SUBQUERY3_t3 ON (SUBQUERY3_t3 . `col_bigint_not_null` = SUBQUERY3_t2 . `pk` )) ON (SUBQUERY3_t3 . `col_char_64` = SUBQUERY3_t2 . `col_varchar_key` ) WHERE SUBQUERY3_t3 . `col_varchar_64_not_null` <= table1 . `col_varchar_64` AND SUBQUERY3_t1 . `col_decimal_40` >= table1 . `col_int` ) OR table1 . `col_varchar_key` = 'i' OR table1 . `pk` != table1 . `pk` ;
+--------+
| field1 |
+--------+
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
+--------+
6 rows in set (1.72 sec)
4. What is your TiDB version? (Required)
master of nightly
The text was updated successfully, but these errors were encountered:
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
mysql -h172.16.5.85 -P52324 -uroot -D subquery_agg10000
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master of nightly
The text was updated successfully, but these errors were encountered: