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

executor: support the SELECT INTO ... OUTFILE syntax. #14848

Merged
merged 9 commits into from
Feb 24, 2020

Conversation

qw4990
Copy link
Contributor

@qw4990 qw4990 commented Feb 19, 2020

What problem does this PR solve?

Fix #11112.
Support the SELECT INTO ... OUTFILE syntax.

What is changed and how it works?

  1. Introduce a new common plan SelectInto to let our planner support this syntax;
  2. Introduce a new executor SelectIntoExec;
  3. Add some tests.

Check List

Tests

  • Unit test

@qw4990 qw4990 requested a review from a team as a code owner February 19, 2020 09:36
@ghost ghost requested review from eurekaka and lzmhhh123 and removed request for a team February 19, 2020 09:36
@qw4990 qw4990 requested review from wshwsh12, tiancaiamao, winoros and XuHuaiyu and removed request for eurekaka and lzmhhh123 February 19, 2020 09:37
executor/select_into.go Outdated Show resolved Hide resolved
executor/select_into.go Outdated Show resolved Hide resolved
executor/select_into.go Outdated Show resolved Hide resolved
executor/select_into.go Outdated Show resolved Hide resolved
executor/select_into.go Show resolved Hide resolved
@tiancaiamao
Copy link
Contributor

Rest LGTM

@qw4990
Copy link
Contributor Author

qw4990 commented Feb 20, 2020

Thanks for your review @tiancaiamao , all comments have been addressed.

@qw4990 qw4990 requested review from SunRunAway and zz-jason and removed request for winoros February 20, 2020 06:14
@qw4990
Copy link
Contributor Author

qw4990 commented Feb 23, 2020

PTAL @tiancaiamao @zz-jason

@tiancaiamao
Copy link
Contributor

LGTM

@tiancaiamao tiancaiamao added the status/LGT1 Indicates that a PR has LGTM 1. label Feb 24, 2020
executor/select_into.go Outdated Show resolved Hide resolved
executor/select_into.go Outdated Show resolved Hide resolved
executor/select_into_test.go Outdated Show resolved Hide resolved
@qw4990
Copy link
Contributor Author

qw4990 commented Feb 24, 2020

@SunRunAway Thanks for your review, all comments have been addressed now~ PTAL

executor/select_into.go Outdated Show resolved Hide resolved
executor/select_into_test.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Feb 24, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@6e27ad2). Click here to learn what that means.
The diff coverage is 76.5451%.

@@             Coverage Diff             @@
##             master     #14848   +/-   ##
===========================================
  Coverage          ?   80.2105%           
===========================================
  Files             ?        501           
  Lines             ?     130807           
  Branches          ?          0           
===========================================
  Hits              ?     104921           
  Misses            ?      17585           
  Partials          ?       8301

Copy link
Contributor

@SunRunAway SunRunAway left a comment

Choose a reason for hiding this comment

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

LGTM

@SunRunAway SunRunAway added status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. status/ReqChange labels Feb 24, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Feb 24, 2020

/run-all-tests

@SunRunAway SunRunAway added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Feb 24, 2020
@SunRunAway
Copy link
Contributor

Please add the release note section in the PR description. A PR of documentation is appreciated.

@sre-bot sre-bot merged commit 51fd695 into pingcap:master Feb 24, 2020
mapleFU added a commit to mwish-pingcap-company-repos/tidb that referenced this pull request Feb 25, 2020
…ny-repos/tidb into making-notes

* 'making-notes' of https://github.com/mwish-pingcap-company-repos/tidb:
  planner: change DataSource's type name to 'DataSource' (pingcap#14768)
  expression: derive collation and charset information and support the Collation() builtin-func (pingcap#14905)
  util: introduce thread local pool (pingcap#14647)
  executor: support the `SELECT INTO ... OUTFILE` syntax. (pingcap#14848)
  expression: disable Duration/JSON related function push down to tiflash (pingcap#14861)
  planner: move flagPrunColumnsAgain to the last (pingcap#14791)
  exec: remove duplicate auto-generated test cases (pingcap#14910)
  planner: distinguish FullScan and the RangeScan in explain/desc info (pingcap#14696)

Signed-off-by: mapleFU <1506118561@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/execution SIG execution sig/planner SIG: Planner status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/new-feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support SELECT ... INTO OUTFILE
4 participants