Skip to content

Instantly share code, notes, and snippets.

@yaravind
Last active April 10, 2020 01:38
Show Gist options
  • Save yaravind/944fd9c65e7e19eb972add9d341fb1c0 to your computer and use it in GitHub Desktop.
Save yaravind/944fd9c65e7e19eb972add9d341fb1c0 to your computer and use it in GitHub Desktop.
init file to load spark imports etc. You can use :load macro in the shell
:paste
import org.apache.spark.sql.types._
import com.databricks.spark.xml._
import org.apache.spark.sql.functions._
// For implicit conversions like converting RDDs to DataFrames
import spark.implicits._
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment