spark-datetime (homepage)
A library for exposing dateTime functions from the joda library as SQL functions. With a dsl to build dateTime catalyst expressions.
@SparklineData / (1)
A library for exposing dateTime functions from the joda library as SQL functions. With a dsl to build dateTime catalyst expressions. Functions provided for DateTime construction, field access, comparison, period arithmetic. A 'date' StringContext to embed date expressions inside sql.
Tags
How to
Include this package in your Spark Applications using:
spark-shell, pyspark, or spark-submit
> $SPARK_HOME/bin/spark-shell --packages SparklineData:spark-datetime:0.0.2
sbt
If you use the sbt-spark-package plugin, in your sbt build file, add:
spDependencies += "SparklineData/spark-datetime:0.0.2"
Otherwise,
resolvers += "Spark Packages Repo" at "https://repos.spark-packages.org/" libraryDependencies += "SparklineData" % "spark-datetime" % "0.0.2"
Maven
In your pom.xml, add:<dependencies> <!-- list of dependencies --> <dependency> <groupId>SparklineData</groupId> <artifactId>spark-datetime</artifactId> <version>0.0.2</version> </dependency> </dependencies> <repositories> <!-- list of other repositories --> <repository> <id>SparkPackagesRepo</id> <url>https://repos.spark-packages.org/</url> </repository> </repositories>
Releases
Version: 0.0.2 ( 7e1f63 | zip | jar ) / Date: 2015-10-29 / License: Apache-2.0 / Scala version: 2.10
Version: 0.0.1 ( 7d7065 | zip | jar ) / Date: 2015-09-01 / License: Apache-2.0 / Scala version: 2.10