Skip to content

Commit

Permalink
Upgrade Spark to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pkolaczk committed Aug 8, 2016
1 parent 8f5139d commit c963cba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion project/Versions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ object Versions {
// and install in a local Maven repository. This is all done automatically, however it will work
// only on Unix/OSX operating system. Windows users have to build and install Spark manually if the
// desired version is not yet published into a public Maven repository.
val Spark = "2.0.0-preview"
val Spark = "2.0.0"
val SparkJetty = "8.1.14.v20131031"
val JSR166e = "1.1.0"
val Airlift = "0.6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ package object cassandra {
}
}

implicit class DataFrameWriterWrapper(val dfWriter: DataFrameWriter) extends AnyVal {
implicit class DataFrameWriterWrapper[T](val dfWriter: DataFrameWriter[T]) extends AnyVal {
/** Sets the format used to access Cassandra through Connector */
def cassandraFormat: DataFrameWriter = {
def cassandraFormat: DataFrameWriter[T] = {
dfWriter.format("org.apache.spark.sql.cassandra")
}

Expand All @@ -50,7 +50,7 @@ package object cassandra {
table: String,
keyspace: String,
cluster: String = CassandraSourceRelation.defaultClusterName,
pushdownEnable: Boolean = true): DataFrameWriter = {
pushdownEnable: Boolean = true): DataFrameWriter[T] = {

cassandraFormat.options(cassandraOptions(table, keyspace, cluster, pushdownEnable))
}
Expand Down

0 comments on commit c963cba

Please sign in to comment.