Github user MaxGekk commented on a diff in the pull request: https://github.com/apache/spark/pull/21909#discussion_r205978091 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/UnivocityParser.scala --- @@ -203,19 +203,11 @@ class UnivocityParser( } } - private val doParse = if (requiredSchema.nonEmpty) { --- End diff -- The introduced optimization works in the case if `multiLine` is disable. In that case, this removed code is used. For now it is not needed anymore because it just duplicates optimization in some sense.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org