Fix build and switch to jdk8

* Fix Build

* more memory

* switch to jdk8

* old memory settings
This commit is contained in:
Sameer Agarwal 2016-05-23 12:54:07 -07:00
parent 10b90c0d2b
commit 0355fc4ee7
4 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@
sbt/*.jar
.idea
.idea_modules
*.iml
# sbt specific
build/*.jar

View File

@ -1,5 +1,7 @@
language: scala
sudo: false
jdk:
oraclejdk8
cache:
directories:
- $HOME/.ivy2

View File

@ -16,7 +16,7 @@
package com.databricks.spark.sql.perf
import org.apache.spark.sql.SQLContext
import org.apache.spark.sql.{Encoder, SQLContext}
import org.apache.spark.sql.expressions.Aggregator
case class Data(id: Long)
@ -108,6 +108,10 @@ class DatasetPerformance extends Benchmark {
b
}
override def bufferEncoder = implicitly[Encoder[SumAndCount]]
override def outputEncoder = implicitly[Encoder[Double]]
override def finish(reduction: SumAndCount): Double = reduction.sum.toDouble / reduction.count
override def merge(b1: SumAndCount, b2: SumAndCount): SumAndCount = {

View File

@ -1,6 +1,5 @@
package com.databricks.spark.sql.perf
import com.databricks.spark.sql.perf.{Benchmark, DatasetPerformance}
import org.apache.spark.sql.hive.test.TestHive
import org.scalatest.FunSuite