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
[SPARK-30575][DOC] Document HAVING Clause of SELECT statement in SQL Reference #27284
Conversation
Test build #117047 has finished for PR 27284 at commit
|
<dd> | ||
Specifies any expression that evaluates to a result type <code>boolean</code>. Two or | ||
more expressions may be combined together using comparision operators | ||
('>', '>=', ‘>’, ‘>=’, ‘=’, ‘<’ and ‘<=’, '<=>') and logical operators (AND, NOT, OR).<br><br> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+--------+---+ | ||
|
||
-- `HAVING` clause without a `GROUP BY` clause. | ||
SELECT sum(quantity) AS sum FROM dealer HAVING sum(quantity) > 10; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is an extra space between SELECT
and sum
Test build #117075 has finished for PR 27284 at commit
|
Test build #117084 has finished for PR 27284 at commit
|
<dd> | ||
Specifies any expression that evaluates to a result type <code>boolean</code>. Two or | ||
more expressions may be combined together using comparision operators | ||
( <code>></code>, <code>>=</code>, <code>=</code>, <code><</code>, <code><=</code>, <code><=></code> ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment here as in the WHERE docs. Do you need to talk about <
etc?
Test build #117133 has finished for PR 27284 at commit
|
Merged to master |
Thank you @srowen @huaxingao |
What changes were proposed in this pull request?
Document HAVING clause of SELECT statement in SQL Reference Guide.
Why are the changes needed?
Currently Spark lacks documentation on the supported SQL constructs causing
confusion among users who sometimes have to look at the code to understand the
usage. This is aimed at addressing this issue.
Does this PR introduce any user-facing change?
Yes.
Before:
There was no documentation for this.
After.
How was this patch tested?
Tested using jykyll build --serve