Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upJoin with index delivers unexpected results if indexed column name is a prefix of the join column name #2465
Comments
|
This seems to be a bug that deserves fixing. I will dig into it and try to fix as my time allows. |
|
This was an easy fix (see pull request). Thanks for reporting the bug and hope that the issue is solved now. |
|
@MarkusBonsch I have just applied your commit to the most-recent dev version of Both examples do work now as expected! Many THX for the quick fix. |
This issue is based on my question on stackoverflow.
For a specific set-up of two data.tables a join does not deliver the results I am expecting.
For the following variations the join works as expected. The unexpected behaviour above seems to be occurring only, if an index exists on a column having a column name being the prefix of the join column name and both having similar text contents.
SessionInfo:
Please note that the same behavior occurs for data.table 1.10.4 and R.Version 3.4.2 under Windows and also Ubuntu Linux 14.04.