| Bug #108743 | Equality propagation is disabled on utf8mb4_general_ci collation | ||
|---|---|---|---|
| Submitted: | 11 Oct 2022 14:41 | Modified: | 12 Oct 2022 9:48 | 
| Reporter: | Yukun Liang | Email Updates: | |
| Status: | Won't fix | Impact on me: | |
| Category: | MySQL Server: Optimizer | Severity: | S5 (Performance) | 
| Version: | OS: | Any | |
| Assigned to: | CPU Architecture: | Any | |
   [11 Oct 2022 14:41]
   Yukun Liang        
  
 
   [12 Oct 2022 9:48]
   MySQL Verification Team        
  Hello Yukun Liang,
Thank you for the report and feedback.
Development confirmed that this is an expected behavior.
Quoting Dev's note as is:
====
The equality is propagated correctly for utf8mb4_0900_ai_ci in mysql
8.0:
mysql> explain format=tree select * from t1 join t2 on t1.s1 = t2.s1
where t1.s1 = 'abc'\G
*************************** 1. row ***************************
EXPLAIN: -> Inner hash join (no condition)  (cost=0.70 rows=1)
    -> Filter: (t2.s1 = 'abc')  (cost=0.35 rows=1)
        -> Table scan on t2  (cost=0.35 rows=1)
    -> Hash
        -> Filter: (t1.s1 = 'abc')  (cost=0.35 rows=1)
            -> Table scan on t1  (cost=0.35 rows=1)
1 row in set (0.00 sec)
Since
1) this has been like this for utf8mb4_general_ci since 2006 and
2) utf8mb4_0900_ai_ci is the default collation for utf8mb4 in mysql 8.0
======
Closing this as a won't fix.
regards,
Umesh
 
