Skip to content

Join Crash When dealing with inner join involving subquery and like operator #60625

@TheoristCoder

Description

@TheoristCoder

Bug Report

1. Minimal reproduce step (Required)

CREATE TABLE t1(c0 INT );

CREATE  VIEW v0(c0) AS SELECT NULL AS col_0 FROM t1 WHERE ((t1.c0));

SELECT *
FROM t1
          JOIN (SELECT ((v0.c0) LIKE (((v0.c0) + (v0.c0)))) AS col_0
                    FROM v0) as subQuery1 ON (subQuery1.col_0);

2. What did you expect to see? (Required)

Execute successfully

3. What did you see instead (Required)

[HY000][1105] other error: [components/ tidb_query_expr/ src/ types/ expr_builder. rs:310]: Invalid like (sig = LikeSig) signature: Evaluate error: [components/ tidb_query_expr/ src/ types/ function. rs:276]: Expect `Bytes`, received `Int`

4. What is your TiDB version? (Required)

Release Version: v9.0.0-beta.1.pre-547-g4d34cac87c
Edition: Community
Git Commit Hash: 4d34cac87c4f78db4a11bccc97c2f601219d1b9f
Git Branch: HEAD
UTC Build Time: 2025-04-11 05:02:15
GoVersion: go1.23.8
Race Enabled: false
Check Table Before Drop: false
Store: tikv

Metadata

Metadata

Assignees

Labels

affects-6.5This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.affects-9.0This bug affects the 9.0.x versions.severity/criticalsig/executionSIG executiontype/bugThe issue is confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions