SHARE
TWEET

Untitled

a guest Jun 24th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. val schema = StructType(Seq(
  2.     StructField("field1", StringType, true),
  3.     StructField("field2", StringType, true)
  4. ))
  5.  
  6. val df = spark.read.format("parquet").schema(schema).load(someReadPath)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top