spark-datetime-lite (homepage)

A lightweight, dependency-free package for extending Spark's date and timestamp operations, focused on time periods.

@danielpes / (1)

A simple, lightweight, dependency-free package for extending Apache Spark's date and timestamp operations, focused on date and time periods.
This package uses only java.util.Calendar, java.util.Date, java.sql.Date and java.sql.Timestamp for the date operations.


Tags

  • 1|date
  • 1|timestamp
  • 1|time
  • 1|period

How to

Include this package in your Spark Applications using:

spark-shell, pyspark, or spark-submit

> $SPARK_HOME/bin/spark-shell --packages danielpes:spark-datetime-lite:0.2.0-s_2.11

sbt

If you use the sbt-spark-package plugin, in your sbt build file, add:

spDependencies += "danielpes/spark-datetime-lite:0.2.0-s_2.11"

Otherwise,

resolvers += "Spark Packages Repo" at "https://repos.spark-packages.org/"

libraryDependencies += "danielpes" % "spark-datetime-lite" % "0.2.0-s_2.11"

Maven

In your pom.xml, add:
<dependencies>
  <!-- list of dependencies -->
  <dependency>
    <groupId>danielpes</groupId>
    <artifactId>spark-datetime-lite</artifactId>
    <version>0.2.0-s_2.11</version>
  </dependency>
</dependencies>
<repositories>
  <!-- list of other repositories -->
  <repository>
    <id>SparkPackagesRepo</id>
    <url>https://repos.spark-packages.org/</url>
  </repository>
</repositories>

Releases

Version: 0.2.0-s_2.11 ( 9eb711 | zip | jar ) / Date: 2018-01-30 / License: Apache-2.0 / Scala version: 2.11

Version: 0.1.0-s_2.11 ( d27008 | zip | jar ) / Date: 2017-07-17 / License: Apache-2.0 / Scala version: 2.11