GitHub user hvanhovell opened a pull request:
https://github.com/apache/spark/pull/10957
[SPARK-13049] Add First/last with ignore nulls to functions.scala
This PR adds the ability to specify the ```ignoreNulls``` option to the
functions dsl, e.g:
```df.select($"id", last($"value", ignoreNulls =
true).over(Window.partitionBy($"id").orderBy($"other"))```
This PR is some where between a bug fix (see the JIRA) and a new feature. I
am not sure if we should backport to 1.6.
cc @yhuai
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/hvanhovell/spark SPARK-13049
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/10957.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 #10957
----
commit defcc02a8885e884d5140b11705b764a51753162
Author: Herman van Hovell <[email protected]>
Date: 2016-01-27T21:31:30Z
First/last with ignore nulls.
----
---
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]