spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serega Sheypak <>
Subject Implement Dataset reader from SEQ file with protobuf to Dataset
Date Sun, 08 Oct 2017 10:00:59 GMT
Hi, did anyone try to implement Spark SQL dataset reader from SEQ file with
protobuf inside to Dataset?

Imagine I have protobuf def
 - name: String
 - lastName: String
- phones: List[String]

and generated scala case class:
case class Person(name:String, lastName: String, phones: List[String])

I want to write some component that gives me Dataset with types schema.

val personsDataset =
  .option("inferSchema", "true")[Person]

Where can I take a look at references?

View raw message