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

    https://github.com/apache/spark/pull/9019#discussion_r41565813
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/ScalaReflection.scala 
---
    @@ -75,6 +76,242 @@ trait ScalaReflection {
        */
       private def localTypeOf[T: TypeTag]: `Type` = typeTag[T].in(mirror).tpe
     
    +  /**
    +   * Returns the Spark SQL DataType for a given scala type.  Where this is 
not an exact mapping
    +   * to a native type, an ObjectType is returned. Special handling is also 
used for Arrays including
    +   * those that hold primitive types.
    +   */
    +  def dataTypeFor(tpe: `Type`): DataType = tpe match {
    --- End diff --
    
    What is the difference between this method and `def schemaFor(tpe: `Type`): 
Schema`?


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to