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

unlock shallow copy of .SD when needed in joins in j #3774

Merged
merged 8 commits into from
Aug 28, 2019
Merged

Conversation

MichaelChirico
Copy link
Member

@MichaelChirico MichaelChirico commented Aug 18, 2019

Closes #1926

@franknarf1 I went through a few of the examples you posted and the fix here seems to work, it would be great if you could try and stress test it a bit anyway to make sure all the bases are covered 🙇

@jangorecki / @mattdowle do we need to re-set the locked attr on.exit() for the shallow copies as well?

@codecov
Copy link

codecov bot commented Aug 18, 2019

Codecov Report

Merging #3774 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3774      +/-   ##
==========================================
+ Coverage   99.41%   99.41%   +<.01%     
==========================================
  Files          71       71              
  Lines       13225    13241      +16     
==========================================
+ Hits        13148    13164      +16     
  Misses         77       77
Impacted Files Coverage Δ
src/init.c 100% <100%> (ø) ⬆️
R/data.table.R 100% <100%> (ø) ⬆️
src/assign.c 100% <100%> (ø) ⬆️
R/setkey.R 100% <100%> (ø) ⬆️
src/utils.c 100% <100%> (ø) ⬆️
R/bmerge.R 100% <100%> (ø) ⬆️
src/subset.c 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4db0943...4e02dff. Read the comment docs.

Copy link
Member

@jangorecki jangorecki left a comment

Choose a reason for hiding this comment

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

no idea about setattr in shallow copy

@jangorecki jangorecki added this to the 1.12.4 milestone Aug 28, 2019
@jangorecki
Copy link
Member

We should definitely get this in 1.12.4 to clean up new vignette. @MichaelChirico

@MichaelChirico
Copy link
Member Author

it's ready to go w your approval 👍

@jangorecki jangorecki requested a review from mattdowle August 28, 2019 09:46
@mattdowle mattdowle changed the title Closes #1926 -- unlock shallow copy of .SD when needed in joins in j unlock shallow copy of .SD when needed in joins in j Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.SD is locked for DT[, DT2[.SD]] joins
3 participants