-
Notifications
You must be signed in to change notification settings - Fork 1k
Fix incorrect keying after merge of keyed, non-alphabetic factor and character columns
#5362
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
Merged
Merged
Changes from 25 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
34a744e
add fix
ben-schwen 80b0b91
add test
ben-schwen 1f6c41e
add more tests
ben-schwen 4ab82c1
add NEWS
ben-schwen 5a3e3c7
typo
MichaelChirico 8d70e6d
sentence structure
MichaelChirico b1f4892
state bug more precisely
ben-schwen 2183cbb
unwield lengthy if with ws
ben-schwen f42d498
more tests
ben-schwen 96437fb
extend NEWS for mirror casse
ben-schwen f45564a
update NEWS
ben-schwen 9ce6737
vapply on single columns instead of whole subset
ben-schwen b7bbb5a
Merge branch 'master' into merge_factor_char_key
ben-schwen 608599c
use .shallow
ben-schwen fedde2d
Merge branch 'master' into merge_factor_char_key
MichaelChirico 0d5f5a5
suggested NEWS wording
MichaelChirico c204850
add OPs original example more exactly to the regression test
MichaelChirico 6750e27
add some tests of multiple join columns
MichaelChirico 49a8f1a
avoid using column x in table x
MichaelChirico c9a33af
attempt to refactor into huge helper (🤞)
MichaelChirico 07e3acc
trailing ws
MichaelChirico fa3be64
fix (?) tests
MichaelChirico dc95644
need to pass 'ans' too
MichaelChirico 5ad17ad
don't reuse overloaded name 'let'
MichaelChirico 7c8d2f7
typo
MichaelChirico 088f876
remove apparently vestigial check
MichaelChirico dda8722
Merge remote-tracking branch 'origin/master' into merge_factor_char_key
MichaelChirico a1cbe53
Merge branch 'master' into merge_factor_char_key
ben-schwen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this
is.logical(i)check has been there since initial check-in in 2008 (2ec50ec; wasis.logical(irows)then), not sure it's possible to reach it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For queries like
DT[<logical subset>], we return here:data.table/R/data.table.R
Lines 681 to 684 in 6029f2f
For queries like
DT[<logical subset>, .(key, other)], the key is retained & the value returned here:data.table/R/data.table.R
Lines 1459 to 1467 in 6029f2f
So I'm pretty sure it's not possible to reach this. We can see if revdeps turn anything up.