Skip to content

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

Merged
mattdowle merged 8 commits intomasterfrom
sd_join_locked
Aug 28, 2019
Merged

unlock shallow copy of .SD when needed in joins in j#3774
mattdowle merged 8 commits intomasterfrom
sd_join_locked

Conversation

@MichaelChirico
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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

Comment thread inst/tests/tests.Rraw Outdated
@jangorecki jangorecki added this to the 1.12.4 milestone Aug 28, 2019
@jangorecki
Copy link
Copy Markdown
Member

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

@MichaelChirico
Copy link
Copy Markdown
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
Comment thread src/utils.c
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