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

    https://github.com/apache/spark/pull/7799#discussion_r35979235
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/InternalRow.scala ---
    @@ -19,71 +19,25 @@ package org.apache.spark.sql.catalyst
     
     import org.apache.spark.sql.Row
     import org.apache.spark.sql.catalyst.expressions._
    -import org.apache.spark.sql.types._
    -import org.apache.spark.unsafe.types.{CalendarInterval, UTF8String}
     
     /**
      * An abstract class for row used internal in Spark SQL, which only 
contain the columns as
      * internal types.
      */
    -abstract class InternalRow extends Serializable with SpecializedGetters {
    +// todo: make InternalRow just extends SpecializedGetters, remove generic 
getter
    +abstract class InternalRow extends GenericSpecializedGetters with 
Serializable {
    --- End diff --
    
    Note that there are only a few places which still need the generic getter, 
the hardest part is reading partitioned column, I'm not sure how to get shema 
for 
[it](https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceStrategy.scala#L192-L198).


---
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