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

Fixes MS SQL issue of select after arrange #46

Closed
wants to merge 1 commit into from

Conversation

edgararuiz-zz
Copy link
Contributor

Fixes tidyverse/dplyr#3062

It adds another layer to sql-optimise that checks to see if the current query is a SELECT or a FILTER and if the previous query is an ORDER BY and merges the two. The exception is that if in the previous query history is a GROUP BY. The exception is because implementing this optimization for grouped data seems to require a more complex solution that seems to be out of scope of the reported issue.

Here are the tests I ran:
test_optimise.pdf

@hadley
Copy link
Member

hadley commented Nov 2, 2017

See discussion in issue as to why this doesn't work 😞

@hadley hadley closed this Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants