File tree Expand file tree Collapse file tree 3 files changed +10
-14
lines changed Expand file tree Collapse file tree 3 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 1- version = 3.8 .2
1+ version = 3.8 .3
22runner.dialect = scala213
33style = default
44maxColumn = 120
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ import sbt._
22
33object Dependencies {
44 private val prod = Seq (
5- " com.github.nscala-time" %% " nscala-time" % " $nscala-time_version$" ,
6- " com.lihaoyi" %% " pprint" % " $pprint_version$" ,
7- " org.apache.spark" %% " spark-core" % " $spark_version$" % Provided ,
8- " org.apache.spark" %% " spark-sql" % " $spark_version$" % Provided ,
9- " org.apache.spark" %% " spark-streaming" % " $spark_version$" % Provided
5+ " com.github.nscala-time" %% " nscala-time" % " $nscala-time_version$" ,
6+ " com.lihaoyi" %% " pprint" % " $pprint_version$" ,
7+ " org.apache.spark" %% " spark-core" % " $spark_version$" % Provided ,
8+ " org.apache.spark" %% " spark-sql" % " $spark_version$" % Provided ,
9+ " org.apache.spark" %% " spark-streaming" % " $spark_version$" % Provided
1010 )
1111 private val test = Seq (
1212 " org.scalatest" %% " scalatest" % " $scalatest_version$" ,
Original file line number Diff line number Diff line change @@ -11,18 +11,14 @@ import java.io.File
1111import java .nio .file .Files
1212import scala .reflect .io .Directory
1313
14- trait SparkTestHelper
15- extends AnyWordSpec
16- with BeforeAndAfterEach
17- with BeforeAndAfterAll
18- with Matchers {
14+ trait SparkTestHelper extends AnyWordSpec with BeforeAndAfterEach with BeforeAndAfterAll with Matchers {
1915
2016 private val sparkSession = SparkSession
2117 .builder()
2218 .master(" local[*]" )
2319 .appName(" test-spark-session" )
2420 .config(sparkConfiguration)
25- // .enableHiveSupport() uncomment this if you want to use Hive
21+ // .enableHiveSupport() uncomment this if you want to use Hive
2622 .getOrCreate()
2723
2824 protected var tempDir : String = _
@@ -33,14 +29,14 @@ trait SparkTestHelper
3329
3430 protected def sparkConfiguration : SparkConf =
3531 new SparkConf ()
36- /* Uncomment this if you want to use Delta Lake
32+ /* Uncomment this if you want to use Delta Lake
3733
3834 .set("spark.sql.extensions", "io.delta.sql.DeltaSparkSessionExtension")
3935 .set(
4036 "spark.sql.catalog.spark_catalog",
4137 "org.apache.spark.sql.delta.catalog.DeltaCatalog"
4238 )
43- */
39+ */
4440
4541 override protected def beforeAll (): Unit = {
4642 super .beforeAll()
You can’t perform that action at this time.
0 commit comments