Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Also extend Serializable.
  • Loading branch information
JoshRosen committed Jun 6, 2016
commit 5e9c258dfb592e47800df9c5205a7b0c6c07ed4a
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ package object expressions {
/**
* Helper functions for working with `Seq[Attribute]`.
*/
implicit class AttributeSeq(val attrs: Seq[Attribute]) {
implicit class AttributeSeq(val attrs: Seq[Attribute]) extends Serializable {
/** Creates a StructType with a schema matching this `Seq[Attribute]`. */
def toStructType: StructType = {
StructType(attrs.map(a => StructField(a.name, a.dataType, a.nullable)))
Expand Down