Github user rxin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1346#discussion_r14754430
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/types/dataTypes.scala 
---
    @@ -93,47 +92,56 @@ abstract class DataType {
       }
     
       def isPrimitive: Boolean = false
    +
    +  def simpleString: String
     }
     
    -case object NullType extends DataType
    +case object NullType extends DataType {
    +  def simpleString: String = "null"
    +}
     
     trait PrimitiveType extends DataType {
       override def isPrimitive = true
     }
     
     abstract class NativeType extends DataType {
    -  type JvmType
    -  @transient val tag: TypeTag[JvmType]
    -  val ordering: Ordering[JvmType]
    +  private[sql] type JvmType
    +  @transient private[sql] val tag: TypeTag[JvmType]
    +  private[sql] val ordering: Ordering[JvmType]
     
    -  @transient val classTag = {
    +  @transient private[sql] val classTag = {
         val mirror = runtimeMirror(Utils.getSparkClassLoader)
         ClassTag[JvmType](mirror.runtimeClass(tag.tpe))
       }
     }
     
     case object StringType extends NativeType with PrimitiveType {
    -  type JvmType = String
    -  @transient lazy val tag = typeTag[JvmType]
    -  val ordering = implicitly[Ordering[JvmType]]
    +  private[sql] type JvmType = String
    +  @transient private[sql] lazy val tag = typeTag[JvmType]
    +  private[sql] val ordering = implicitly[Ordering[JvmType]]
    +  def simpleString: String = "string"
     }
    --- End diff --
    
    while you at it, add a blank line to separate each class


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to