Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22309#discussion_r225030497
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/ScalaReflection.scala 
---
    @@ -125,6 +125,17 @@ object ScalaReflection extends ScalaReflection {
         case _ => false
       }
     
    +  def isValueClass(tpe: `Type`): Boolean = {
    +    val notNull = !(tpe <:< localTypeOf[Null])
    +    notNull && definedByConstructorParams(tpe) && tpe <:< 
localTypeOf[AnyVal]
    --- End diff --
    
    why a value class must be a `Product`? Is it because there is no way to get 
the value class field name and type?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to