Skip to content

[SPARK-20260][MLLib] String interpolation required for error message#17572

Closed
vijaykramesh wants to merge 3 commits intoapache:masterfrom
vijaykramesh:master
Closed

[SPARK-20260][MLLib] String interpolation required for error message#17572
vijaykramesh wants to merge 3 commits intoapache:masterfrom
vijaykramesh:master

Conversation

@vijaykramesh
Copy link
Copy Markdown

What changes were proposed in this pull request?

This error message doesn't get properly formatted because of a missing s. Currently the error looks like:

Caused by: java.lang.IllegalArgumentException: requirement failed: indices should be one-based and in ascending order; found current=$current, previous=$previous; line="$line"

(note the literal $current instead of the interpolated value)

Please review http://spark.apache.org/contributing.html before opening a pull request.

@vijaykramesh vijaykramesh changed the title String interpolation required for error message [SPARK-20260] String interpolation required for error message Apr 7, 2017
@vijaykramesh vijaykramesh changed the title [SPARK-20260] String interpolation required for error message [SPARK-20260][MLLib] String interpolation required for error message Apr 7, 2017
@srowen
Copy link
Copy Markdown
Member

srowen commented Apr 8, 2017

Yes, that's fine though I typically encourage people to hunt for other occurrences of the same issue. I used a regex like ^[^"]*[^fs]"("")?[^"]*\$ to find SparkHadoopUtil:352, a couple instances in PowerIterationCluster.scala, DecisionTreeModel.scala, MLUtils.scala, a couple copies of TestingUtils.scala, OrcQuerySuite.scala, and maybe others. Have a look and zap at least those?

@vijaykramesh
Copy link
Copy Markdown
Author

@srowen fixed it in some more places. it seems like everywhere else that regexp matches we actually want the $ outputted. do you want me to squash commits as well?

@SparkQA
Copy link
Copy Markdown

SparkQA commented Apr 9, 2017

Test build #3649 has started for PR 17572 at commit 89aeb62.

@SparkQA
Copy link
Copy Markdown

SparkQA commented Apr 9, 2017

Test build #3653 has finished for PR 17572 at commit 89aeb62.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

asfgit pushed a commit that referenced this pull request Apr 9, 2017
## What changes were proposed in this pull request?
This error message doesn't get properly formatted because of a missing `s`.  Currently the error looks like:

```
Caused by: java.lang.IllegalArgumentException: requirement failed: indices should be one-based and in ascending order; found current=$current, previous=$previous; line="$line"
```
(note the literal `$current` instead of the interpolated value)

Please review http://spark.apache.org/contributing.html before opening a pull request.

Author: Vijay Ramesh <vramesh@demandbase.com>

Closes #17572 from vijaykramesh/master.

(cherry picked from commit 261eaf5)
Signed-off-by: Sean Owen <sowen@cloudera.com>
@srowen
Copy link
Copy Markdown
Member

srowen commented Apr 9, 2017

Merged to master/2.1

@asfgit asfgit closed this in 261eaf5 Apr 9, 2017
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