[R-Forge #2468] merge() should warn if either table is empty #597

Closed
arunsrinivasan opened this Issue Jun 8, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@arunsrinivasan
Member

arunsrinivasan commented Jun 8, 2014

Submitted by: Matt Dowle; Assigned to: Nobody; R-Forge link

or, at least before any type error occurs. if sqlQuery downloads 0 rows, it still has all the columns but the types haven't been able to detected by sqlQuery inspecting the data (so all left as type logical(0)). That can generate type error by a keyed join that normally works that expects the key column to be character (as it is normally when some rows have been downloaded) rather than logical, for example.

jangorecki added a commit to jangorecki/data.table that referenced this issue Nov 28, 2015

jangorecki added a commit that referenced this issue Feb 25, 2016

Merge pull request #1546 from jangorecki/merge-empty-dt-warn
merge.data.table will raise warning for 0 columns data.tables. Closes #597

arunsrinivasan added a commit that referenced this issue Feb 25, 2016

Merge branch 'master' of https://github.com/Rdatatable/data.table
* 'master' of https://github.com/Rdatatable/data.table:
  merge.data.table will raise warning for 0 columns data.tables. Closes #597
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment