Github user viirya commented on a diff in the pull request: https://github.com/apache/spark/pull/22309#discussion_r227638126 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/ScalaReflection.scala --- @@ -128,6 +128,16 @@ object ScalaReflection extends ScalaReflection { case _ => false } + def isValueClass(tpe: `Type`): Boolean = { + tpe.typeSymbol.asClass.isDerivedValueClass + } + + /** Returns the underlying type of value class `cls`. */ + def getUnderlyingTypeOf(cls: `Type`): `Type` = { --- End diff -- nit: it is usually to name it as `tpe` for `Type` in ScalaReflection.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org