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

    https://github.com/apache/spark/pull/20450#discussion_r165098764
  
    --- Diff: 
sql/core/src/main/java/org/apache/spark/sql/vectorized/ColumnVector.java ---
    @@ -215,10 +215,18 @@ public final ColumnarRow getStruct(int rowId) {
     
       /**
        * Returns the map type value for rowId.
    +   *
    +   * In Spark, map type value is basically a key data array and a value 
data array. A key from the
    +   * key array with a index and a value from the value array with the same 
index contribute to
    +   * an entry of this map type value.
    +   *
    +   * To support map type, implementations must construct an {@link 
ColumnarMap} and return it in
    +   * this method. {@link ColumnarMap} requires a {@link ColumnVector} that 
stores the data of all
    +   * the keys of all the maps in this vector, and another {@link 
ColumnVector} that stores the data
    +   * of all the values of all the maps in this vector, and an offset and 
length which specifies the
    --- End diff --
    
    nit: ` an offset and length` -> `a pair of offset and length`? Or 
`specifies` -> `specify`?


---

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

Reply via email to