GitHub user dilipbiswal opened a pull request:
https://github.com/apache/spark/pull/13897
[SPARK-16195][SQL] Allow users to specify empty over clause in window
expressions through dataset API
## What changes were proposed in this pull request?
Allow to specify empty over clause in window expressions through dataset API
In SQL, its allowed to specify an empty OVER clause in the window
expression.
```SQL
select area, sum(product) over () as c from windowData
where product > 3 group by area, product
having avg(month) > 0 order by avg(month), product
```
In this case the analytic function sum is presented based on all the rows
of the result set
Currently its not allowed through dataset API and is handled in this PR.
## How was this patch tested?
Added a new test in DataframeWindowSuite
â¦essions through dataset API
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dilipbiswal/spark spark-empty-over
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13897.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #13897
----
commit a667cb55628a40dcf278647cc4af0fe8f28db5fe
Author: Dilip Biswal <[email protected]>
Date: 2016-06-24T16:49:58Z
[SPARK-16195] Allow users to specify empty over clause in window
expressions through dataset API
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]