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
ERROR 1105 (HY000) at line 1: DB::TiFlashException: Duplicated selection in DAG request
SELECT table1 . col_char_64 > ( SELECT MIN( SUBQUERY1_t1 . col_char_64 ) AS SUBQUERY1_field1 FROM C AS SUBQUERY1_t1 INNER JOIN BB AS SUBQUERY1_t2 ON (SUBQUERY1_t2 . col_decimal_30_10 = SUBQUERY1_t1 . col_decimal_40_key ) WHERE SUBQUERY1_t2 . col_varchar_64 < SUBQUERY1_t1 . col_char_64 ) AS field1 FROM H AS table1 RIGHT OUTER JOIN ( SELECT SUBQUERY2_t1 . * FROM B AS SUBQUERY2_t1 INNER JOIN DD AS SUBQUERY2_t2 ON (SUBQUERY2_t2 . col_varchar_64_not_null = SUBQUERY2_t1 . col_varchar_key ) WHERE SUBQUERY2_t2 . col_int_not_null_key <> 8 ) AS table2 INNER JOIN ( SELECT DISTINCT SUBQUERY3_t1 . * FROM R AS SUBQUERY3_t1 LEFT OUTER JOIN E AS SUBQUERY3_t2 ON (SUBQUERY3_t2 . col_varchar_64_not_null = SUBQUERY3_t1 . col_varchar_key ) ) AS table3 ON (table3 . col_varchar_key = table2 . col_varchar_64 ) ON (table3 . col_tinyint_not_null = table2 . col_decimal_40_key ) WHERE table3 . col_char_64_not_null >= SOME ( SELECT SUBQUERY4_t2 . col_varchar_64 AS SUBQUERY4_field1 FROM CC AS SUBQUERY4_t1 INNER JOIN ( G AS SUBQUERY4_t2 LEFT OUTER JOIN B AS SUBQUERY4_t3 ON (SUBQUERY4_t3 . col_varchar_key = SUBQUERY4_t2 . col_varchar_64_not_null )) ON (SUBQUERY4_t3 . col_varchar_64_not_null = SUBQUERY4_t2 . col_varchar_key ) WHERE SUBQUERY4_t3 . col_char_64 != table3 . col_varchar_64 OR SUBQUERY4_t2 . col_int_key > SUBQUERY4_t3 . col_tinyint_not_null ) AND ( table1 . col_decimal_30_10_key = 141 AND table1 . col_varchar_key = table2 . col_varchar_key ) GROUP BY field1 ;
after reduced:
create table ts (col_char_64 char(64), col_varchar_64_not_null varchar(64) not null, col_varchar_key varchar(1), id int primary key, col_varchar_64 varchar(64),col_char_64_not_null char(64) not null);
alter table ts set tiflash replica 1;
mysql -h172.16.5.85 -P52324 -uroot -D subquery_agg10000
ERROR 1105 (HY000) at line 1: DB::TiFlashException: Duplicated selection in DAG request
SELECT table1 .
col_char_64
> ( SELECT MIN( SUBQUERY1_t1 .col_char_64
) AS SUBQUERY1_field1 FROMC
AS SUBQUERY1_t1 INNER JOINBB
AS SUBQUERY1_t2 ON (SUBQUERY1_t2 .col_decimal_30_10
= SUBQUERY1_t1 .col_decimal_40_key
) WHERE SUBQUERY1_t2 .col_varchar_64
< SUBQUERY1_t1 .col_char_64
) AS field1 FROMH
AS table1 RIGHT OUTER JOIN ( SELECT SUBQUERY2_t1 . * FROMB
AS SUBQUERY2_t1 INNER JOINDD
AS SUBQUERY2_t2 ON (SUBQUERY2_t2 .col_varchar_64_not_null
= SUBQUERY2_t1 .col_varchar_key
) WHERE SUBQUERY2_t2 .col_int_not_null_key
<> 8 ) AS table2 INNER JOIN ( SELECT DISTINCT SUBQUERY3_t1 . * FROMR
AS SUBQUERY3_t1 LEFT OUTER JOINE
AS SUBQUERY3_t2 ON (SUBQUERY3_t2 .col_varchar_64_not_null
= SUBQUERY3_t1 .col_varchar_key
) ) AS table3 ON (table3 .col_varchar_key
= table2 .col_varchar_64
) ON (table3 .col_tinyint_not_null
= table2 .col_decimal_40_key
) WHERE table3 .col_char_64_not_null
>= SOME ( SELECT SUBQUERY4_t2 .col_varchar_64
AS SUBQUERY4_field1 FROMCC
AS SUBQUERY4_t1 INNER JOIN (G
AS SUBQUERY4_t2 LEFT OUTER JOINB
AS SUBQUERY4_t3 ON (SUBQUERY4_t3 .col_varchar_key
= SUBQUERY4_t2 .col_varchar_64_not_null
)) ON (SUBQUERY4_t3 .col_varchar_64_not_null
= SUBQUERY4_t2 .col_varchar_key
) WHERE SUBQUERY4_t3 .col_char_64
!= table3 .col_varchar_64
OR SUBQUERY4_t2 .col_int_key
> SUBQUERY4_t3 .col_tinyint_not_null
) AND ( table1 .col_decimal_30_10_key
= 141 AND table1 .col_varchar_key
= table2 .col_varchar_key
) GROUP BY field1 ;after reduced:
create table ts (col_char_64 char(64), col_varchar_64_not_null varchar(64) not null, col_varchar_key varchar(1), id int primary key, col_varchar_64 varchar(64),col_char_64_not_null char(64) not null);
alter table ts set tiflash replica 1;
The text was updated successfully, but these errors were encountered: