GitHub user liancheng opened a pull request:
https://github.com/apache/spark/pull/14334
[MINOR][SQL] Fixes window specification SQL format
## What changes were proposed in this pull request?
This PR fixes a minor formatting issue of `WindowSpecDefinition.sql` when
no partitioning expressions are present.
Before:
```sql
( ORDER BY `a` ASC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)
```
After:
```sql
(ORDER BY `a` ASC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)
```
## How was this patch tested?
New test case added in `ExpressionSQLBuilderSuite`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/liancheng/spark window-spec-sql-format
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14334.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 #14334
----
commit 98355694c3ccdfc92a3df086adfd818f89394ec9
Author: Cheng Lian <[email protected]>
Date: 2016-07-24T13:23:21Z
Fixes window specification SQL format
----
---
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]