We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f4d4a4 commit 01b072dCopy full SHA for 01b072d
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/encoders/ExpressionEncoder.scala
@@ -52,7 +52,8 @@ object ExpressionEncoder {
52
throw new UnsupportedOperationException(
53
"Cannot create encoder for Option of non-flat type, as non-flat type is represented " +
54
"as a row, and the entire row can not be null in Spark SQL like normal databases. " +
55
- "You can wrap your type with Tuple1 if you do want top level null objects.")
+ "You can wrap your type with Tuple1 if you do want top level null objects, e.g. " +
56
+ "val ds: Dataset[Tuple1[MyClass]] = Seq(Tuple1(MyClass(...)), Tuple1(null)).toDS")
57
}
58
59
val cls = mirror.runtimeClass(tpe)
0 commit comments