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

BUG: Fix sort_by codegen and repeated compilation issue #1181

Closed
wants to merge 1 commit into from

Conversation

cpcloud
Copy link
Member

@cpcloud cpcloud commented Oct 21, 2017

Closes #1179
Closes #1180

@cpcloud cpcloud self-assigned this Oct 21, 2017
@cpcloud cpcloud added bug Incorrect behavior inside of ibis impala The Apache Impala backend postgres The PostgreSQL backend sqlite The SQLite backend labels Oct 21, 2017
@cpcloud cpcloud added this to the 0.12 milestone Oct 21, 2017
@cpcloud cpcloud force-pushed the fix-order-by-count branch 3 times, most recently from a307b22 to 074e6c9 Compare October 23, 2017 17:46
@cpcloud
Copy link
Member Author

cpcloud commented Oct 24, 2017

@wesm can you review this when you get a chance?

@cpcloud cpcloud requested a review from wesm October 24, 2017 15:29
@wesm
Copy link
Member

wesm commented Oct 24, 2017

will do

expr.compile().compile(compile_kwargs={'literal_binds': True})
)
expected = """\
SELECT count('*') AS count
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the count-star syntax for sqlite, I guess (did not know that)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, actually this will have the same behavior as count(*) except in the case of an empty table. I need to fix this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, nevermind. This is the form suggested by the SQLAlchemy docs.

@cpcloud cpcloud closed this in a0581b2 Oct 25, 2017
@cpcloud cpcloud deleted the fix-order-by-count branch October 25, 2017 01:01
@cpcloud
Copy link
Member Author

cpcloud commented Oct 25, 2017

Thanks for the review @wesm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior inside of ibis impala The Apache Impala backend postgres The PostgreSQL backend sqlite The SQLite backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants