GitHub user JasonMWhite opened a pull request: https://github.com/apache/spark/pull/16896
[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. @dongjoon-hyun @davies Mind taking a look? The contribution is my original work and I license the work to the project under the projectâs open source license. 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/16896.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 #16896 ---- commit 4238533f8699dfff75d3b5fe437668cc0ce4d55c Author: Jason White <jason.wh...@shopify.com> Date: 2017-02-11T21:39:19Z cast TimestampType.toInternal output to 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org