Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrectly checking ignoreLeadingWhiteSpace twice #417

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

omervk
Copy link

@omervk omervk commented Mar 16, 2017

No description provided.

@@ -63,7 +63,7 @@ case class CsvRelation protected[spark] (
logger.warn(s"$parseMode is not a valid parse mode. Using ${ParseModes.DEFAULT}.")
}

if ((ignoreLeadingWhiteSpace || ignoreLeadingWhiteSpace) && ParserLibs.isCommonsLib(parserLib)) {
if ((ignoreLeadingWhiteSpace || ignoreTrailingWhiteSpace) && ParserLibs.isCommonsLib(parserLib)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Up to my knowledge, this option is not documented and does not work. I proposed the change in #306 but it was ported into Spark 2.x. So, I decided to close.

@codecov-io
Copy link

codecov-io commented Mar 16, 2017

Codecov Report

Merging #417 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #417   +/-   ##
=======================================
  Coverage   87.01%   87.01%           
=======================================
  Files          12       12           
  Lines         562      562           
  Branches      136      136           
=======================================
  Hits          489      489           
  Misses         73       73
Impacted Files Coverage Δ
...n/scala/com/databricks/spark/csv/CsvRelation.scala 88.95% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7997c3c...39f4504. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants