Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error implicit convertion between varchar and timestamp when join #25902

Closed
sylzd opened this issue Jul 2, 2021 · 3 comments · Fixed by #25915
Closed

error implicit convertion between varchar and timestamp when join #25902

sylzd opened this issue Jul 2, 2021 · 3 comments · Fixed by #25915
Assignees
Labels
severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@sylzd
Copy link
Contributor

sylzd commented Jul 2, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table tt1 (ts timestamp);
create table tt2 (ts varchar(32));
insert into tt1 values ("2001-01-01 00:00:00");
insert into tt2 values ("2001-01-01 00:00:00");
select * from tt1 where ts in (select ts from tt2);

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

+---------------------+
| ts                  |
+---------------------+
| 2001-01-01 00:00:00 |
+---------------------+
1 row in set (0.01 sec)

3. What did you see instead (Required)

Empty set (0.00 sec)

4. What is your TiDB version? (Required)

5.10 release version & v5.1.0-alpha-372-g4e61eb149-dirty

@sylzd sylzd added the type/bug The issue is confirmed as a bug. label Jul 2, 2021
@sylzd sylzd changed the title Bug:error implicit convert between varchar and timestamp error implicit convert between varchar and timestamp when join Jul 2, 2021
@sylzd
Copy link
Contributor Author

sylzd commented Jul 2, 2021

/assign

@sylzd
Copy link
Contributor Author

sylzd commented Jul 2, 2021

This bug produced in production environment!!! Tag severity/major should be added.

@sylzd sylzd changed the title error implicit convert between varchar and timestamp when join error implicit convertion between varchar and timestamp when join Jul 2, 2021
@ti-srebot
Copy link
Contributor

Please edit this comment or add a new comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants