ilike function may cause data race for non-constant pattern #49677
Labels
affects-7.1
affects-7.5
severity/major
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
We can see that in line 201, the pattern is constructed and set
builtinIlikeSig.pattern
tidb/pkg/expression/builtin_ilike_vec.go
Lines 200 to 203 in 5c279d8
contVec
andvecVec
usesbuiltinlikeSIg.pattern
directly:tidb/pkg/expression/builtin_ilike_vec.go
Lines 137 to 150 in 5c279d8
If expression is evaluated in concurrency, it may cause data race
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: