-
Notifications
You must be signed in to change notification settings - Fork 985
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
int i and nomatch arg #4353
int i and nomatch arg #4353
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4353 +/- ##
=======================================
Coverage 99.54% 99.54%
=======================================
Files 76 76
Lines 14612 14623 +11
=======================================
+ Hits 14545 14556 +11
Misses 67 67
Continue to review full report at Codecov.
|
Both before and after my changes, this PR turns on DT = data.table(x = 1:4)
> DT[c(1L, 5L, NA_integer_)]
x
<int>
1: 1
2: NA
3: NA
> DT[c(1L, 5L, NA_integer_), nomatch=NULL] # new behavior NEWS item mentions
x
<int>
1: 1
> DT[c(1L, 5L, NA_integer_), nomatch=0] # nomatch=0 can be used as well
x
<int>
1: 1 The new tests don't cover So we don't want to open the door to folk starting to use The difficulty to overcome is that |
… ignored before, convert nomatch=0 to NULL instead of NULL to 0 in internals
… wasn't passed to convertNegAndZeroIdx at all)
Merging now to make progress. As always, everything is always open for discussion and reconsideration until release. |
closes #3109
closes #3666
also refactors code for better code coverage, thus is likely to get some failure for codcov check if any of those expanded lines were not covered before