Skip to content

Commit

Permalink
Drop entry for UserDefinedType
Browse files Browse the repository at this point in the history
  • Loading branch information
maropu committed Jan 12, 2018
1 parent afe0af5 commit 18552a4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ class Dataset[T] private[sql](
// Since binary types in top-level schema fields have a specific format to print,
// so we do not cast them to strings here.
case BinaryType => s"`${f.name}`"
case _: UserDefinedType[_] => s"`${f.name}`"
case _ => s"CAST(`${f.name}` AS STRING)"
}}
val takeResult = newDf.selectExpr(castExprs: _*).take(numRows + 1)
Expand Down

0 comments on commit 18552a4

Please sign in to comment.