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

IMPORT INTO should explicitly return error for unsupported use case #55497

Closed
lance6716 opened this issue Aug 19, 2024 · 0 comments · Fixed by #55968
Closed

IMPORT INTO should explicitly return error for unsupported use case #55497

lance6716 opened this issue Aug 19, 2024 · 0 comments · Fixed by #55968
Labels
component/ddl This issue is related to DDL of TiDB. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 may-affects-7.5 may-affects-8.1 severity/moderate type/bug The issue is confirmed as a bug.

Comments

@lance6716
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

IMPORT INTO is a complex statement, it may be executed in multiple TiDB nodes in the cluster. And its internal implementation is different from LOAD DATA which users may think they are similar. So we should explicitly return error for unsupported use case.

For example,

IMPORT INTO t(a, @, c) SET b=(SELECT 'subquery') FROM

will not return error and will not import any data due to an internal panic

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

error message or data is imported.

3. What did you see instead (Required)

see above

4. What is your TiDB version? (Required)

@lance6716 lance6716 added the type/bug The issue is confirmed as a bug. label Aug 19, 2024
@jebter jebter added severity/major severity/moderate component/ddl This issue is related to DDL of TiDB. labels Aug 20, 2024
@ti-chi-bot ti-chi-bot bot closed this as completed in 76098f5 Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/ddl This issue is related to DDL of TiDB. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 may-affects-7.5 may-affects-8.1 severity/moderate type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants