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

    https://github.com/apache/spark/pull/20981#discussion_r180394552
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/InternalRow.scala ---
    @@ -119,4 +119,26 @@ object InternalRow {
         case v: MapData => v.copy()
         case _ => value
       }
    +
    +  /**
    +   * Returns an accessor for an InternalRow with given data type and 
ordinal.
    +   */
    +  def getAccessor(dataType: DataType, ordinal: Int): (InternalRow) => Any 
= dataType match {
    --- End diff --
    
    Well you could generalize to make it take an ordinal?


---

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

Reply via email to