-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
executor, server: load_data.go is changed and add unit test #23201
Conversation
/cc @tiancaiamao /cc @zimulala /cc @hi-rustin PTAL |
@zoujia-cm: GitHub didn't allow me to request PR reviews from the following users: PTAL, /cc. Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cc @zimulala PTAL |
@zoujia-cm: GitHub didn't allow me to request PR reviews from the following users: PTAL. Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/uncc Sorry, I am not a reviewer of these SIGs, I suggest you join the sig-sql-infra slack, and then join the SIG channel to request a review. |
/cc @zimulala |
/cc @zimulala |
@zimulala please take a look |
/cc @zimulala |
1 similar comment
/cc @zimulala |
/cc @qw4990 |
/cc @qw4990 |
@@ -575,6 +575,63 @@ func (cli *testServerClient) runTestLoadDataAutoRandom(c *C) { | |||
}) | |||
} | |||
|
|||
func (cli *testServerClient) runTestLoadDataAutoRandomWithSpecialTerm(c *C) { | |||
path := "/tmp/load_data_txn_error_term.csv" |
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.
I think it's better to convert this test to an integration test.
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.
how about using executor, server: support " as field encloser for load data stmt
as the PR title?
The original PR is this one #22834 |
/LGTM |
/LGTM |
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by writing |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: ad00ffd
|
What problem does this PR solve?
Problem Summary:
I use "load data" statement to load data from csv file. In csv file, fields are enclosed by "'" and are terminated by ",". lines are terminated by "|"(for example: '11','22'|'33','44'). I generated a csv file with 50000 items of record. When load it into db by "load data" statement, only items less than 50000 (often loss at least one item) were loaded.
What is changed and how it works?
What's Changed:
The way to locate the terminator (include field terminator and line terminator) was changed.
How it Works:
Line terminator can be located precisely in different situations.
Related changes
Tests
Side effects
Release note