-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
server: check LOAD DATA is into a base table #20924
Conversation
@nullnotnil The PR #20917 has fixed the break of pingcap/parser#1079 |
Thanks! I'll watch for this to merge, and then update this PR. |
@nullnotnil The PR #20917 has merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@tangenta, @wjhuang2016, @ti-srebot, PTAL. |
1 similar comment
@tangenta, @wjhuang2016, @ti-srebot, PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@tangenta, @wjhuang2016, @ti-srebot, PTAL. |
/merge |
/run-all-tests |
@nullnotnil merge failed. |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #21638 |
What problem does this PR solve?
Issue Number: Fixes #20880
Problem Summary:
What is changed and how it works?
What's Changed:
Before loading data using
LOAD DATA
, a check if performed to make sure that the table is of type base table.How it Works:
I have a PR on pingcap/parser#1080 to add an explicity
IsBaseTable()
function, which I think will be useful in other cases such as infoschema.Note: The error code is a generic one. TiDB does not allow insertable views (differing from MySQL), and MySQL does not support sequences.
Related changes
Check List
Tests
Side effects
Release note
LOAD DATA
statement can only load data into base tables.