GitHub user HyukjinKwon opened a pull request:
https://github.com/apache/spark/pull/14788
[SPARK-17174][SQL] Add type support for TimestampType for add_months
## What changes were proposed in this pull request?
This PR adds the support for returning `TimestampType` for `add_months`
function.
The output type of this function follows the input data type. (e.g.
input:`TimestampType`, output : `TimestampType`)
## How was this patch tested?
Unit test in `DateExpressionsSuite`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/HyukjinKwon/spark SPARK-17174-add
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14788.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 #14788
----
commit 777300e23d64a9f305feafb34a6c223c4328ea0e
Author: hyukjinkwon <[email protected]>
Date: 2016-08-24T11:39:27Z
Add type support for TimestampType for add_months
----
---
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]