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

invalid on= downgraded from error to warning, and retain list names #3854

Merged
merged 7 commits into from
Sep 11, 2019

Conversation

mattdowle
Copy link
Member

@mattdowle mattdowle commented Sep 10, 2019

Resolves batchtools (and parallelMap which uses batchtools) in #3581

Two separate issues were affecting batchtools. Resolved both in the same PR.

  1. Invalid on= natural join (i.e. on= provided without i= but on= not a list) downgraded to warning that on= is being ignored as before to return the same result as 1.12.2.

  2. If a plain list was passed to as.data.table() and that list had names containing blanks, then those blanks were being auto named with "V1" etc. This tripped up batchtools because it constructs an expression stored in a data.table column with a do.call() and the "V1" in the column name created an invalid parameter. Therefore changed as.data.table.list() back to retain the list names as-is even if they contain blanks or duplicates (which seems very reasonable), just as v1.12.2 did.

The change to test 2061 is related to the construction of the y to compare against. As it was a new test in this dev release, the construction of y relied on dev behavior which didn't retain list names. I changed the construction of y to be more direct and the test itself doesn't change.

@mattdowle mattdowle added the WIP label Sep 10, 2019
@mattdowle mattdowle added this to the 1.12.4 milestone Sep 10, 2019
@mattdowle mattdowle mentioned this pull request Sep 10, 2019
31 tasks
@codecov
Copy link

codecov bot commented Sep 10, 2019

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3854      +/-   ##
==========================================
+ Coverage   99.42%   99.42%   +<.01%     
==========================================
  Files          71       71              
  Lines       13412    13416       +4     
==========================================
+ Hits        13335    13339       +4     
  Misses         77       77
Impacted Files Coverage Δ
R/data.table.R 100% <100%> (ø) ⬆️
R/as.data.table.R 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 57469c3...26d554d. Read the comment docs.

@mattdowle mattdowle removed the WIP label Sep 11, 2019
@mattdowle mattdowle changed the title invalid on= natural downgraded from error to warning invalid on= downgraded from error to warning, and retain list names Sep 11, 2019
@mattdowle mattdowle merged commit 01f71e4 into master Sep 11, 2019
@mattdowle mattdowle deleted the on_natural branch September 11, 2019 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant