Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

support argument "--complete-insert" #135

Merged
merged 2 commits into from
Aug 19, 2020

Conversation

lichunzhu
Copy link
Contributor

What problem does this PR solve?

resolve #134

What is changed and how it works?

Add argument --complete-insert in dumpling.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation

Release note

@csuzhangxc
Copy link
Member

another question, does dumpling handle generated columns well?

@lichunzhu
Copy link
Contributor Author

lichunzhu commented Aug 14, 2020

another question, does dumpling handle generated columns well?

dumpling will use "complete-insert" mode if there are generated columns in the table.

@codecov
Copy link

codecov bot commented Aug 14, 2020

Codecov Report

Merging #135 into master will not change coverage.
The diff coverage is 75.00%.

@@           Coverage Diff           @@
##           master     #135   +/-   ##
=======================================
  Coverage   50.28%   50.28%           
=======================================
  Files          17       17           
  Lines        1941     1941           
=======================================
  Hits          976      976           
  Misses        892      892           
  Partials       73       73           

@csuzhangxc
Copy link
Member

@kennytm @overvenus cloud you take a look for this?

@kennytm
Copy link
Collaborator

kennytm commented Aug 18, 2020

one thing i'm afraid is that this overlaps with the --no-header flag in CSV (with opposite meaning) 🤔

@lichunzhu
Copy link
Contributor Author

one thing i'm afraid is that this overlaps with the --no-header flag in CSV (with opposite meaning) 🤔

Keep complete-insert for SQL and no-header for csv? 🤔

Copy link
Collaborator

@kennytm kennytm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kennytm kennytm added status/LGT1 One reviewer approved (LGTM1) and removed status/PTAL labels Aug 18, 2020
@lichunzhu lichunzhu merged commit 26975af into pingcap:master Aug 19, 2020
@lichunzhu lichunzhu deleted the supportCompleteInsert branch August 19, 2020 02:11
tisonkun pushed a commit to tisonkun/dumpling that referenced this pull request Oct 20, 2021
tisonkun pushed a commit to tisonkun/dumpling that referenced this pull request Oct 20, 2021
tisonkun pushed a commit to tisonkun/dumpling that referenced this pull request Oct 20, 2021
tisonkun pushed a commit to tisonkun/dumpling that referenced this pull request Oct 20, 2021
tisonkun pushed a commit to tisonkun/tidb that referenced this pull request Oct 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/LGT1 One reviewer approved (LGTM1)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dump column name as --complete-insert did in mydumper
3 participants