Skip to content

Instantly share code, notes, and snippets.

Spark Tour
// Load sc and sqlContext
import com.civitaslearning.test.SharedSparkContext._
// Implicit sqlContext.artifactDataFrame
import com.civitaslearning.slate.SlateRedshiftInputFormat._
val slate = new com.civitaslearning.slate.Slate()
val slateArtifactId = "37607984"
Scala tour
// assignment
val a: String = "hello"
a
> "hello"
// type safety
val a: Int = "hello"
> error