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

Add UNION ALL #1890

Closed
iangow opened this issue Jun 6, 2016 · 2 comments
Closed

Add UNION ALL #1890

iangow opened this issue Jun 6, 2016 · 2 comments

Comments

@iangow
Copy link

iangow commented Jun 6, 2016

There is no verb for UNION ALL in dplyr. For R data frames, bind_rows() likely works. Even if rows are unique UNION generally does not yield the same result as UNION ALL (e.g., rows get resorted).

If union_all(x, y) were implemented it could be translated as SELECT * FROM x UNION ALL SELECT * FROM y for SQL and (I guess) bind_rows(x, y) for R. (An alternative might be to have bind_rows(x, y) translate into SELECT * FROM x UNION ALL SELECT * FROM y if x and y are in an SQL source.)

@iangow
Copy link
Author

iangow commented Jun 6, 2016

Actually, bind_rows is more like UNION CORRESPONDING, which is not implemented in PostgreSQL (and other systems). So equating the two would therefore not make sense.

@hadley
Copy link
Member

hadley commented Jun 7, 2016

All ready implemented in dev version

@hadley hadley closed this as completed Jun 7, 2016
@iangow iangow mentioned this issue Jun 7, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jun 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants