Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
options ignoreLeadingWhiteSpace and ignoreTrailingWhiteSpace are now …
Browse files Browse the repository at this point in the history
…correctly passed to univocity parser
  • Loading branch information
Luca Rosellini committed Jul 3, 2018
1 parent 1ae6492 commit 4a68345
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name := "spark-csv"

version := "1.5.0"
version := "1.5.1"

organization := "com.databricks"
organization := "org.keedio"

scalaVersion := "2.11.7"

Expand Down
4 changes: 4 additions & 0 deletions src/main/scala/com/databricks/spark/csv/CsvRelation.scala
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ case class CsvRelation protected[spark] (
fieldSep = delimiter,
quote = quoteChar,
escape = escapeVal,
ignoreLeadingSpace = ignoreLeadingWhiteSpace,
ignoreTrailingSpace = ignoreTrailingWhiteSpace,
commentMarker = commentChar).parseLine(firstLine)
} else {
val csvFormat = defaultCsvFormat
Expand Down Expand Up @@ -289,6 +291,8 @@ case class CsvRelation protected[spark] (
new BulkCsvReader(iter, split,
headers = header, fieldSep = delimiter,
quote = quoteChar, escape = escapeVal,
ignoreLeadingSpace = ignoreLeadingWhiteSpace,
ignoreTrailingSpace = ignoreTrailingWhiteSpace,
commentMarker = commentChar, maxCharsPerCol = maxCharsPerCol)
}
}, true)
Expand Down

0 comments on commit 4a68345

Please sign in to comment.