Open wjhuang2016 opened 5 months ago
the same as #53857.
We will check the result after merging the #53857
This bug is not relation with https://github.com/pingcap/tidb/issues/53857.
I need to continue to investigate it.
We can simple the code like this.
SELECT
SUM((ISNULL(derived_table.r4) OR derived_table.r1 <= 'kdAP@*^~Z!(0') IS TRUE)
FROM (
SELECT
CHAR_LENGTH(`t9b3fcac6`.`col_99`) AS `r0`,
TO_BASE64(`t9b3fcac6`.`col_99`) AS `r1`,
INSTR(`t9b3fcac6`.`col_99`, `t9b3fcac6`.`col_99`) AS `r2`,
POSITION(`t9b3fcac6`.`col_99` IN `t9b3fcac6`.`col_99`) AS `r3`,
`t9b3fcac6`.`col_99` AS `r4`
FROM `t9b3fcac6`
GROUP BY `t9b3fcac6`.`col_99`
) AS derived_table
LIMIT 69514940;
it is a simpler sql.
SELECT
SUM((derived_table.r1 <= 'kdAP@*^~Z!(0') IS TRUE)
FROM (
SELECT
TO_BASE64(`t9b3fcac6`.`col_99`) AS `r1`
FROM `t9b3fcac6`
GROUP BY `t9b3fcac6`.`col_99`
) AS derived_table
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
MySQL:
3. What did you see instead (Required)
TiDB:
4. What is your TiDB version? (Required)
cfbabfa705dbbc97c8e1e00af7f2d2620406304c