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

    https://github.com/apache/spark/pull/21657#discussion_r202528372
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/UnivocityParser.scala
 ---
    @@ -223,8 +234,8 @@ class UnivocityParser(
         } else {
           try {
             var i = 0
    -        while (i < schema.length) {
    -          row(i) = valueConverters(i).apply(tokens(i))
    +        while (i < requiredSchema.length) {
    --- End diff --
    
    Add the comment like
    
    > // When the length of the returned tokens is identical to the length of 
the parsed schema, we just need to convert the tokens that correspond to the 
required columns.


---

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

Reply via email to