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: deep copy json into partial result #9833

Merged
merged 6 commits into from
Mar 28, 2019

Conversation

zz-jason
Copy link
Member

@zz-jason zz-jason commented Mar 20, 2019

What problem does this PR solve?

expression.EvalJSON() only returns a shallow copy of the JSON content in Chunk. We need to deep copy it to avoid dirty memory.

What is changed and how it works?

deep copy JSON into partial result

Check List

Tests

  • Unit test

Related changes

  • Need to cherry-pick to the release branch
  • Need to be included in the release note

@zz-jason zz-jason added type/bugfix This PR fixes a bug. sig/execution SIG execution labels Mar 20, 2019
Copy link
Member

@winoros winoros left a comment

Choose a reason for hiding this comment

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

lgtm

@winoros
Copy link
Member

winoros commented Mar 20, 2019

Failed case in check_dev is a little strange.

@lysu
Copy link
Contributor

lysu commented Mar 21, 2019

/run-common-test

&&

just test ci..

@codecov
Copy link

codecov bot commented Mar 21, 2019

Codecov Report

Merging #9833 into master will increase coverage by 0.0382%.
The diff coverage is 66.6666%.

@@               Coverage Diff                @@
##             master      #9833        +/-   ##
================================================
+ Coverage   77.2356%   77.2738%   +0.0382%     
================================================
  Files           405        405                
  Lines         81667      81668         +1     
================================================
+ Hits          63076      63108        +32     
+ Misses        13919      13877        -42     
- Partials       4672       4683        +11

Copy link
Contributor

@eurekaka eurekaka left a comment

Choose a reason for hiding this comment

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

LGTM

@eurekaka eurekaka added the status/LGT2 Indicates that a PR has LGTM 2. label Mar 28, 2019
@eurekaka
Copy link
Contributor

/run-all-tests

@zz-jason
Copy link
Member Author

/run-integration-common-test
/run-unit-test

@zz-jason
Copy link
Member Author

/run-integration-common-test

@zz-jason zz-jason merged commit 2602977 into pingcap:master Mar 28, 2019
@zz-jason zz-jason deleted the bugfix/firstrow-json branch March 28, 2019 04:54
zz-jason added a commit to zz-jason/tidb that referenced this pull request Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants