GitHub user JasonMWhite opened a pull request:
https://github.com/apache/spark/pull/17200
[SPARK-19561][Python] cast TimestampType.toInternal output to long
## What changes were proposed in this pull request?
Cast the output of `TimestampType.toInternal` to long to allow for proper
Timestamp creation in DataFrames near the epoch.
## How was this patch tested?
Added a new test that fails without the change.
The contribution is my original work and I license the work to the project
under the projectâs open source license.
Resubmission of https://github.com/apache/spark/pull/16896. The original PR
didn't go through Jenkins and broke the build. @davies @dongjoon-hyun
@cloud-fan Could you kick off a Jenkins run for me? It passed everything
for me locally, but it's possible something has changed in the last few weeks.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/JasonMWhite/spark SPARK-19561
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/17200.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 #17200
----
commit 4238533f8699dfff75d3b5fe437668cc0ce4d55c
Author: Jason White <[email protected]>
Date: 2017-02-11T21:39:19Z
cast TimestampType.toInternal output to long
commit 5b1dd6785014bc8159e5c8b2c22a18ecb673afde
Author: Jason White <[email protected]>
Date: 2017-02-16T03:09:19Z
replace int function call with long
----
---
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]