Skip to content

Commit

Permalink
Fixing the String encoder from being nullable (where everyone else is…
Browse files Browse the repository at this point in the history
… not).
  • Loading branch information
imarios committed Dec 21, 2018
1 parent 76b2692 commit c923e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataset/src/main/scala/frameless/TypedEncoder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ object TypedEncoder {
def apply[T: TypedEncoder]: TypedEncoder[T] = implicitly[TypedEncoder[T]]

implicit val stringEncoder: TypedEncoder[String] = new TypedEncoder[String] {
def nullable: Boolean = true
def nullable: Boolean = false

def jvmRepr: DataType = FramelessInternals.objectTypeFor[String]
def catalystRepr: DataType = StringType
Expand Down

0 comments on commit c923e90

Please sign in to comment.