-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
Doc'd that Count("*") is equivalent to COUNT(*) SQL. #16803
Conversation
One other thing to possibly note here is what Mabe:
It's a tricky one to word though. Happy to keep it as-is and skip that. |
Hi Tom,
It's a nice idea but I reckon it's probably fine to leave it out… afterall this is an SQL fundamental (eg it's documented in the pg docs see below). If anything I feel like explicitly stating that pg docs:
https://www.postgresql.org/docs/current/sql-expressions.html#SYNTAX-AGGREGATES |
Makes sense @shangxiao. I've reworded it slightly: |
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
@orf Good idea :) I was originally thinking of them both… but now that I think about it I'm not even sure if folks would ever even use the |
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
@orf Thanks 👍 |
I've always known that
Count("*")
is a valid shorthand forexpression=Star()
, but I'm surprised that it's not documented. This was added by #2496 / f59fd15 back in 2014.If we do want to document this, because it is quite useful, then this seems like a simple way to do it. However I'm open to a larger snippet if needed?