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

    https://github.com/apache/spark/pull/21657#discussion_r200210434
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/UnivocityParser.scala
 ---
    @@ -197,15 +203,21 @@ class UnivocityParser(
        */
       def parse(input: String): InternalRow = doParse(input)
     
    +  private val getToken = if (options.columnPruning) {
    +    (tokens: Array[String], index: Int) => tokens(index)
    +  } else {
    +    (tokens: Array[String], index: Int) => tokens(tokenIndexArr(index))
    --- End diff --
    
    ok


---

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

Reply via email to