You can specify Metadata for the StructField : case class StructField( name: String, dataType: DataType, nullable: Boolean = true, metadata: Metadata = Metadata.empty) {
FYI On Wed, Jun 29, 2016 at 2:50 AM, pooja mehta <sparkrad...@gmail.com> wrote: > Hi, > > Want to add a metadata field to StructField case class in spark. > > case class StructField(name: String) > > And how to carry over the metadata in query execution. > > > >